Go to card [with effects] is slow on Android
Roger Eller
roger.e.eller at sealedair.com
Sun Jan 26 15:43:52 EST 2014
This is what I ended up doing (in the card script of each card):
One card has 20 editable fields. The others contain fewer than 10 fields.
This works to prevent the mobile keyboard from popping up automatically,
and performance is "ok".
*on* closeCard
*set* the traversalOn of fld "flThis" to false
*set* the traversalOn of fld "flThat" to false
*set* the traversalOn of fld "flTheOther" to false
*set* the traversalOn of fld "flEtc" to false
*end* closeCard
*on* openCard
*send* editableFields to me in 125 millisecs
*end* openCard
*on* editableFields
*set* the traversalOn of fld "flThis" to true
*set* the traversalOn of fld "flThat" to true
*set* the traversalOn of fld "flTheOther" to true
*set* the traversalOn of fld "flEtc" to true
*end* editableFields
~Roger
On Sun, Jan 26, 2014 at 3:20 PM, J. Landman Gay <jacque at hyperactivesw.com>wrote:
> On 1/26/14, 2:16 PM, J. Landman Gay wrote:
>
>> On 1/26/14, 12:47 PM, Roger Eller wrote:
>>
>>> They are all offending me. ;-)
>>>
>>> TraversalOn (focusable) is checked for all fields the user needs to fill
>>> in. I simply don't want any field to activate the on-screen keyboard as
>>> soon as the card opens. I want the user to have a chance to see the
>>> whole
>>> screen and choose which field they wish to edit.
>>>
>>
> 3. If there are only a few fields, you can set the traversalOn to false
>> on preOpenCard and set it back to true after openCard is done. This
>> isn't as practical if you have a lot of fields, since you need to loop
>> through them all, but it works okay for one or two fields and there is
>> no cursor flash.
>>
>>
> Addendum: I wasn't accounting for mobile. Both my first or second method
> will likely pop up the keyboard briefly which would not be good. I think
> you'll have to use the third method, which will eliminate the engine's
> attempt to focus on any field.
>
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list