I added a native input field to a card (say card 1) . Now when I click a button and go to the next card this input field is there on card3 ( I did not add it there). The property inspector also shows no fields in the card. This only happens in the IOS simulator. When I test using LC it works fine .This is the latest MobGUI version. Thank you for the help
I tested this on other native controls also browser etc.. they all seem to behave like this. Just like "behave like background" property is set on it.
MobGUI Native input issues
Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: MobGUI Native input issues
Hi benghere,
Welcome to the forum
Check out mobileControlDelete in the dictionary.
This must always be used when leaving a card with a native control.
Simon
Welcome to the forum
Check out mobileControlDelete in the dictionary.
This must always be used when leaving a card with a native control.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Livecode Opensource Backer
- Posts: 120
- Joined: Tue May 22, 2012 1:57 pm
- Location: Vicenza (Italy)
- Contact:
Re: MobGUI Native input issues
Hi,
You open Text Input Behavior script
At the end of "# MobGUI Native Text Input Behavior" add this code:
Regards,
Paolo
You open Text Input Behavior script
At the end of "# MobGUI Native Text Input Behavior" add this code:
Code: Select all
before closeControl
if the environment = "mobile" then
mobileControlDelete sControlName
end if
end closeControl
Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: MobGUI Native input issues
I'll add in checkboxes for 'auto hide' and 'auto delete' for native controls - that should make things easier.
LiveCode Development & Training : http://splash21.com
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: MobGUI Native input issues
I've just been testing these 2 additions - working nicely. Auto hide is useful if you want to leave the control in it's current state - like keep a browser on the same page, etc. and the auto delete means that the control is recreated with the default values. I've made 'auto delete' checked by default.
The new common properties for native mobile controls is shown in the top section...
The new common properties for native mobile controls is shown in the top section...
LiveCode Development & Training : http://splash21.com
Re: MobGUI Native input issues
Thank you Paolo, Simon and splash21 . Adding mobileControlDelete solved the issue. Looking forward to updated mobgui with autohide and autodelete enabled.