Page 1 of 1
Screen transitions not consistent
Posted: Mon Feb 06, 2012 8:29 am
by Youks
Hi All,
I am having a little problem with the inputTextField when switching to another card...........Let me explain that:
On one card 1 i have Navbar,Tabbar baground etc... and an InputTextField.(UI)
When i want to go from card 1 to another card, and whatever the effect used, the InputTexField in card 1 always disapears first before the transition.
I am applying the regular syntax (lock screen with visual effect,Go card..,wait 0 milliseconds,unlock screen etc..).
Another question by the way, how can i restrict only numbers to be accepted in the that field?? (i tried different methods with the inputTextchanged with no joy).
By the way i am using Mobgui for the skinning.
Many Thanks.

Re: Screen transitions not consistent
Posted: Sun Feb 12, 2012 9:58 am
by Youks
No Help?

Re: Screen transitions not consistent
Posted: Sun Feb 12, 2012 12:45 pm
by Jellicle
Yes that's my experience too. Native controls are not really part of the card in the same way that fields, images and other objects or the card background are. So visual effects don't work on them, and they are created and deleted by the LiveCode engine as a separate operation.
One way around this is might be to:
1) take a snapshot of the screen using the "export snapshot" command
2) on your card have an invisible image object in the front most layer - set the file name of that image to the file created by the export snap shot
3) show that image
4) kill the input control. The user won't see it disappear, because the snapshot image looks like the screen did before the control was killed
5) do your transition. When the arrive on the second card, set the file name of the image on the previous card to empty, and hide it, ready for the next time you need to use it.
Let us know if that works

Re: Screen transitions not consistent
Posted: Sun Feb 12, 2012 2:35 pm
by Youks
Thanks Jellicle for your answer!
I really thought at some point that i was the only one having this issue!
I will give a try to your solution which makes sense, but i still find that we have to use too much of walkaround with Livecode!!
I don't want to compare but with Corona we have the daily builds with fixes and constant updates.
The Runrev Team is too silent (No News or any update after 5.0.2)!!! Ok the academies are great but improving and fixing the product should be a priority mainly for the IOS and Android Platform (expecting better native UI behaviors)
On another thread people are having issues (like me) to have decent smooth scrolling fields on iOS with scrolling fields!
By the way i couldn't access your stack (smooth scrolling field).
Thx very much indeed.
Regards.

Re: Screen transitions not consistent
Posted: Sun Feb 12, 2012 6:26 pm
by bn
Hi Jellicle,
When the arrive on the second card, set the file name of the image on the previous card to empty, and hide it, ready for the next time you need to use it.
It is perfectly legal to export a snapshot directly into an image object. You don't have to save it to disk first.
Code: Select all
export snapshot from image 1 to image 2 as png
or whatever
to clear the image object you could say:
maybe saves a little time on the mobile OS
Kind regards
Bernd
Re: Screen transitions not consistent
Posted: Mon Feb 13, 2012 1:53 am
by Jellicle
bn wrote:
Code: Select all
export snapshot from image 1 to image 2 as png
or whatever
D
Even better

Re: Screen transitions not consistent
Posted: Tue Feb 14, 2012 2:45 am
by Youks
Thanks!!!