Page 1 of 1

Taborder (layer) problem

Posted: Thu Jul 19, 2007 7:22 pm
by kpeters
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

Posted: Thu Jul 19, 2007 8:21 pm
by Klaus
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

Posted: Thu Jul 19, 2007 8:28 pm
by kpeters
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