Page 1 of 1

MobGUI Native input issues

Posted: Thu Jan 16, 2014 2:59 am
by benghere
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.

Re: MobGUI Native input issues

Posted: Thu Jan 16, 2014 3:59 am
by Simon
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

Re: MobGUI Native input issues

Posted: Thu Jan 16, 2014 8:07 am
by Neurox66
Hi,
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
Regards,
Paolo

Re: MobGUI Native input issues

Posted: Thu Jan 16, 2014 10:28 am
by splash21
I'll add in checkboxes for 'auto hide' and 'auto delete' for native controls - that should make things easier.

Re: MobGUI Native input issues

Posted: Thu Jan 16, 2014 11:22 am
by splash21
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...
CommonNativeChanges.png

Re: MobGUI Native input issues

Posted: Thu Jan 16, 2014 2:38 pm
by benghere
Thank you Paolo, Simon and splash21 . Adding mobileControlDelete solved the issue. Looking forward to updated mobgui with autohide and autodelete enabled.