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
MobGUI multiline control causes back button to stop working
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 219
- Joined: Mon Dec 05, 2011 5:35 pm
MobGUI multiline control causes back button to stop working
- Attachments
-
- datagrid inside scroller with database v02.livecode.zip
- here is the stack if anyone is interested
- (184.58 KiB) Downloaded 214 times
Re: MobGUI multiline control causes back button to stop work
Hi Coffee1633,
Have you tried building your own multiline native text field?
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
Here is the lesson, but I find it confusing:
http://lessons.runrev.com/s/lessons/m/4 ... -on-mobile
Simon
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
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"
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!
-
- VIP Livecode Opensource Backer
- Posts: 219
- Joined: Mon Dec 05, 2011 5:35 pm
Re: MobGUI multiline control causes back button to stop work
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
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
Re: MobGUI multiline control causes back button to stop work
I'll argue the word "most" aboveCoffee1633 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.

Yup, it's great for that but you've just experienced where speed/UI doesn't help when you get a problem....just for the speed and IU fit.
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!