MobGUI Native input issues

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
benghere
Posts: 14
Joined: Wed Jan 15, 2014 12:33 am

MobGUI Native input issues

Post by benghere » Thu Jan 16, 2014 2:59 am

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.

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

Re: MobGUI Native input issues

Post by Simon » Thu Jan 16, 2014 3:59 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Location: Vicenza (Italy)
Contact:

Re: MobGUI Native input issues

Post by Neurox66 » Thu Jan 16, 2014 8:07 am

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
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: MobGUI Native input issues

Post by splash21 » Thu Jan 16, 2014 10:28 am

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

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: MobGUI Native input issues

Post by splash21 » Thu Jan 16, 2014 11:22 am

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
LiveCode Development & Training : http://splash21.com

benghere
Posts: 14
Joined: Wed Jan 15, 2014 12:33 am

Re: MobGUI Native input issues

Post by benghere » Thu Jan 16, 2014 2:38 pm

Thank you Paolo, Simon and splash21 . Adding mobileControlDelete solved the issue. Looking forward to updated mobgui with autohide and autodelete enabled.

Post Reply

Return to “MobGUI”