excluding fields from tab-advancement

dunbarx at aol.com dunbarx at aol.com
Sun Jul 14 13:22:26 EDT 2013


What Paul said.


Another way, and much klunkier, is to monitor the field that next receives the command to "open", maybe in the card script?


on openField
  if the short name of the target is "theFieldYouWantToBypass" then
  focus on fld "NextFieldInTheTabOrder"
end openField


or


The games you can play with LC are endless. I tried to make a klunky handler using field numbers, but this became tricky, so I stopped. The trick is to have fun, play with the options, oh, and maybe get some work done.


Craig


-----Original Message-----
From: Paul Hibbert <paulhibbert at mac.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sun, Jul 14, 2013 11:46 am
Subject: Re: excluding fields from tab-advancement


Then you could make the "non focusable" field "temporarily focusable" just to 
allow data entry, it worked OK for my test…

==

on mouseDown
   set the traversalOn of me to true
   focus on me
end mouseDown

on closeField
   set the traversalOn of me to false
end closeField

on exitField
   closeField
end exitField

on focusOut
   closeField
end focusOut

==

Paul


On 2013-07-14, at 8:22 AM, Dr. Hawkins wrote:

> On Sat, Jul 13, 2013 at 8:44 PM,  <dunbarx at aol.com> wrote:
>> The easiest way is to make the field non focusable. You can do this in the 
inspector or by script.
> 
> But then the user can't click in, can he?
> 
> Actually entering one of these to enter a value will be a rare event,
> but I do want it to be possible.
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> 
> _______________________________________________
> 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