Taborder (layer) problem

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kpeters
Posts: 112
Joined: Wed Mar 21, 2007 9:32 pm

Taborder (layer) problem

Post by kpeters » Thu Jul 19, 2007 7:22 pm

Since I am mereley interested here in the taborder aspect of layers, allow me to use the term 'taborder' in this discussion.

For simplicity's sake imaging the following:

4 fields, one in each corner of a card and one more field in the center of that card. The four "corner fields" form a group for special input handling purposes. The center field is NOT part of that group.

I want the taborder to be:

1 - top left field
2 - botton left field
3 - center field
4 - top right field
5 - bottom right field

Since group members seem to maintain their own taborder (they don't allow for a "gap" that a non-goup control could fill), I have not found a way to achieve this, short of dissolving the group.

Is there a way I haven't thought of?

TIA,
Kai

Klaus
Posts: 14191
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Thu Jul 19, 2007 8:21 pm

Hi Kai,

you can put a handler into the card script and trap "tabkey" manually.

on tabkey
put the target into tField
## will contain: field "Name of field"
delete word 1 of tField
replace QUOTE with empty in tField
## -> Name of field
switch tField
case "top left field"
focus field "bottom left field"
break
## etc...
...
end tabkey

Tested and works :-)


Best

Klaus

kpeters
Posts: 112
Joined: Wed Mar 21, 2007 9:32 pm

Post by kpeters » Thu Jul 19, 2007 8:28 pm

Thanks, Klaus.

I had entertained similar ideas as well. I just wish taborders were independent from the layer philosophy so there wouldn't be a need for crutches like this....

Kai

Post Reply