Page 1 of 1

focus to button

Posted: Mon Sep 23, 2013 9:52 pm
by byg
Hi,
I like to know if it is possible to change the ID number of a field. Here is the

reason why. I'm using TAB ON RETURN on some field entry and on the last entry I

would like the focus to go to a button that is not the next field. It seems that

TAB ON RETURN use the ID number to get to the next field, so if I could change

the ID number this would work. Or is there an easier way to do this?
TIA
byg

Re: focus to button

Posted: Mon Sep 23, 2013 10:19 pm
by jmburnod
Hi,
It seems that TAB ON RETURN use the ID number to get to the next field
I think that is the fld number and not the id of the fld

Here is a little stack with three flds and one btn

Best regards

Jean-Marc

Re: focus to button

Posted: Mon Sep 23, 2013 10:23 pm
by dunbarx
Hi.

Could you:

Code: Select all

on tabKey
  doYourThing
end tabKey

on returnInField
   tabkey
end returnInField
Craig

Re: focus to button

Posted: Tue Sep 24, 2013 9:21 am
by SparkOut
The order in which controls are navigated on the card depends on the LAYER.
Focus on the lowest layered control (eg 1) and tab, it will go to the next higher layered control (eg 2).
Typically on creation each new control will have a sequentially higher layer, as well as a sequentially higher id, which is why you might have thought the id determined the order, as in your first post.

Re: focus to button

Posted: Tue Sep 24, 2013 11:52 am
by byg
Thanks all, I'll give it a try and get back
byg

Re: focus to button

Posted: Tue Sep 24, 2013 8:39 pm
by byg
Thanks again guys, it works, hard to understand why but I'll read on it.
byg