Page 1 of 1

MobGUI input fields shows on all cards

Posted: Thu Feb 26, 2015 4:15 pm
by ewansmac
I have just started using the latest version of MobGUI an am having problems. When I add an input field to a card then move to another card on a pc or mac, everything seems ok. When I test the same code on an android device, the input field is present on all cards.

I am new to this so its probably something I have done.

Re: MobGUI input fields shows on all cards

Posted: Thu Feb 26, 2015 5:05 pm
by Klaus
Hi ewansmac,

MobGUI will create native iOS/Android controls in your stack, but these native controls are some kind of OVERLAY
floating independently! above your stack as long as you do not delete them, maybe "on closecard"!

Basically you write something like this in the card script with your native control:

Code: Select all

on closecard
   if the environment = "mobile" then
       MobileControlDelete ID_or_Name_of_your_contol_here  
  end if
end closecard

I always thoguht that this would be done by MobGUI, too?

Best

Klaus

Re: MobGUI input fields shows on all cards

Posted: Thu Feb 26, 2015 5:35 pm
by ewansmac
Thanks Klaus,

Seems strange you have to do that but working now. Thanks