focus to button
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
focus to button
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
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
Hi,
Here is a little stack with three flds and one btn
Best regards
Jean-Marc
I think that is the fld number and not the id of the fldIt seems that TAB ON RETURN use the ID number to get to the next field
Here is a little stack with three flds and one btn
Best regards
Jean-Marc
- Attachments
-
- TabFldsAndHiliteBtn.livecode.zip
- (1.2 KiB) Downloaded 419 times
https://alternatic.ch
Re: focus to button
Hi.
Could you:
Craig
Could you:
Code: Select all
on tabKey
doYourThing
end tabKey
on returnInField
tabkey
end returnInField
Re: focus to button
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.
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
Thanks all, I'll give it a try and get back
byg
byg
Re: focus to button
Thanks again guys, it works, hard to understand why but I'll read on it.
byg
byg