Data-Entry in a LiveCode form using the tab key

dunbarx at aol.com dunbarx at aol.com
Sun Apr 17 20:26:34 EDT 2011


Now you're cooking.


If you do this you can have a single handler at the card or stack level instead of millions of local handlers. Just check the property, and where it is directing towards:


on tabKey
  if the tabGizmo is not "" then select the text of the tabGizmo
end tabKey


This property can contain the name or id of the next target, or leave it empty if that field is not in the custom order.


Craig Newman





-----Original Message-----
From: Pete <pete at mollysrevenge.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sun, Apr 17, 2011 5:56 pm
Subject: Re: Data-Entry in a LiveCode form using the tab key


I like that!  Might even be good to have a custom property that defines the
next field?
Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Sun, Apr 17, 2011 at 11:11 AM, <dunbarx at aol.com> wrote:

> Mike is correct of course. Sometimes though, it is either inconvenient or
> counterproductive to re-order the fields. You can always trap the tabKey
> message and explicitly select the text of the field you want:
>
>
> on tabKey
>  select the text of fld "yourNextField"
> end tabKey
>
>
> Put this in all the fields in your tab order and designate the one to
> follow.
>
>
> Craig Newman
>
>
>
>
>
>
> -----Original Message-----
> From: EDWARD DENES <cathy1 at optonline.net>
> To: use-livecode at lists.runrev.com
> Sent: Sat, Apr 16, 2011 7:16 pm
> Subject: Data-Entry in a LiveCode form using the tab key
>
>
>         I have constructed a form in LiveCode; I want to complete the data
> entry in each field by using the tab key.  Is there a way to reconfigure the
> "tab sequence" of fields so that as one tabs and then types in the data, one
> progresses through each field sequentially throughout the form?
>                                                Thanks,
>                                                  Ed Denes
>
> CONTACT INFO:
>
> Edward J Denes
> 510 Allyndale Drive
> Stratford, CT 06614-4308
>
> cathy1 at optonline.net
>
> (203) 378-3111
>
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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
>
>
_______________________________________________
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