on tabKey - what field contains the blinking curser?

Roger Eller roger.e.eller at sealedair.com
Wed Apr 26 20:21:35 EDT 2017


When I tab to the next field, I want to select after the field content, or
in other words place the blinking bar at the end of whatever is already
there.  By default, it is placing it in front of the field content.

On Apr 26, 2017 6:14 PM, "J. Landman Gay via use-livecode" <
use-livecode at lists.runrev.com> wrote:

> On 4/26/17 3:58 PM, Roger Eller via use-livecode wrote:
>
>> How do I discover the name of the field which has received focus (blinking
>> edit bar cursor) when the tabKey is pressed?
>>
>
> One way:
>
> on openfield
>   put the name of the target
> end openfield
>
> I'm not sure if you want to trap a message though. The selectedField will
> return identification if you're querying from inside another handler.
>
> --
> 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