Page 1 of 1

mobgui input fields won't invis in opencard

Posted: Fri Jul 26, 2013 11:51 am
by colourpixels
hi all,
I have two mobgui IOS text input controls for username and password in my app. Rather than have them on a seperate card, I just want to invis them on opencard event, then show them as needed. Unfortunately the code doesn't seem to be working from there, although it works fine subsequently when called from a button click:
iphoneControlSet gInputA["txtUsername"], "visible", pVisible
iphoneControlSet gInputA["txtPassword"], "visible", pVisible

if not from open card (pre-open also a no go), is there anywhere else I could invis them?

My other option is to create the controls on the fly instead of just using visibility, but it would have been nice to be able to position them using the gui.

Thanks for any help, greatly appreciated.

Cheers
note:livecode 5.5.5, ipad app
Dale

Re: mobgui input fields won't invis in opencard

Posted: Fri Jul 26, 2013 12:25 pm
by colourpixels
solution is to deselect the visible checkbox on the mobgui properties window. Looks like that field gets applied somewhere after the load event. Is it possible to get in a see exactly what MobGUI is doing code wise to tweak behaviors like this?