Limit tabbing in a field

Jan Schenkel janschenkel at yahoo.com
Thu Jan 9 11:49:01 EST 2003


--- Mike Bleed <mbleed at yahoo.com> wrote:
> I have a two column field that I want to limit the
> user tabbing in.  I want the user to be able to tab
> to navigate from the first column to the second
> column, but then not be able to tab to a third
> column.  Is there a way to "lock" a field to only
> use two columns?
> 

Hi Mike,

One way to accomplish this is by handling the 'tabKey'
message in your field script. Example to get you
started:

on tabKey
  if tab is in the value of the selectedline of me
then
    beep
  else
    pass tabKey
  end if
end tabkey

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the use-livecode mailing list