MobGUI multiline control causes back button to stop working

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Coffee1633
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 219
Joined: Mon Dec 05, 2011 5:35 pm

MobGUI multiline control causes back button to stop working

Post by Coffee1633 » Sat Sep 28, 2013 4:11 pm

I have spent the better part of the day trying to replicate a simple note taking app -- for practice, but the mobgui multiline control started to block my back button navigation.

I set up two cards, one with a datagrid inside a mobgui scroller and the other card was supposed to have a mobgui mulitline control for editing notes. Testing on card 1 went well but as soon as I put a multiline control onto card 2 the back navigation stopped working. very weird. So I tried all kinds of other controls both MobGui and non-MG and only the multi-line control prevented the back nav button from working. What is going on here? Does anyone know how to fix this problem or is it a bug?

Coffee16
Attachments
datagrid inside scroller with database v02.livecode.zip
here is the stack if anyone is interested
(184.58 KiB) Downloaded 214 times

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: MobGUI multiline control causes back button to stop work

Post by Simon » Sat Sep 28, 2013 10:19 pm

Hi Coffee1633,
Have you tried building your own multiline native text field?

Code: Select all

mobileControlCreate "multiline", "testinput"
mobileControlSet "testinput", "rect", "50,50,500,500"
mobileControlSet "testinput", "visible", true
Now you will be able to control all aspects of the control and be able to debug it yourself!
I think it's time for you to move away from mobGui :)

Oh important! always delete the control on closeCard

Code: Select all

mobileControlDelete "testinput"
Here is the lesson, but I find it confusing:
http://lessons.runrev.com/s/lessons/m/4 ... -on-mobile

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Coffee1633
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 219
Joined: Mon Dec 05, 2011 5:35 pm

Re: MobGUI multiline control causes back button to stop work

Post by Coffee1633 » Sun Sep 29, 2013 12:49 am

Thank you, Simon

I have started experimenting with coding my own iOS controls with some success. I will keep at it. Hopefully that will solve the problem.

I got the impression that most people were using MG especially for buttons and navBars because the MG images match the native look and feel. I have not been able to replicate the standard button graphics for iOS, so I was kinda happy to start using MG just for the speed and IU fit. But now with iOS 7, I don't know anymore. The whole IU has changed again and now I need to start collecting new graphics for standard buttons. I hope LC takes the new iOS design look and feel into account when they come out with their own version of iOS buttons - they are going to, right?

Anyway, the multiline control doesn't have the UI graphic issues, so I will have a go setting up a control in code.

I didn't notice that lesson on setting up native controls, thanks for pointing me in the right direction.

Coffee16

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: MobGUI multiline control causes back button to stop work

Post by Simon » Sun Sep 29, 2013 1:39 am

Coffee1633 wrote: I got the impression that most people were using MG especially for buttons and navBars because the MG images match the native look and feel.
I'll argue the word "most" above :) I think "many" would be more accurate.
...just for the speed and IU fit.
Yup, it's great for that but you've just experienced where speed/UI doesn't help when you get a problem.

I really do hope that all users of mobGui know that it was built with liveCode :!:
That means that anything it can do you can do for yourself. You have notice how it's Android controls don't match iOS? That is because it was built before the Android controls had been added to liveCode.

Graphics... UI... Many developers just don't like them. But if you've ever done any HTML and used "cut" graphics for buttons then you already know how to do it for liveCode.
There are many free Photoshop iOS/Android (yes even iOS7) files available just you have to learn to cut the buttons out.
Oh, and I just figured out how to quickly get a button out of those huge .psd, just duplicate the layer and select "New" and a new image with just the button on it will be made.:)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply