Page 2 of 2
Re: Move with tab on combo box
Posted: Tue Apr 09, 2019 9:27 am
by jmburnod
Hi Alessio,
I tried it and it only works in edit mode, but not in run mode
Do you mean standalone ?
I just tested it in standalone and it works here
Jean-Marc
Re: Move with tab on combo box
Posted: Tue Apr 09, 2019 10:54 am
by AlessioForconi
dunbarx wrote: Mon Apr 08, 2019 5:04 pm
Code: Select all
on tabkey
if the layer of the target is the layer just below the layer of that option button then
click at the loc of thatOptionButton
Or something just as peculiar.
Craig
That's right, I just can't find the property that makes the combobox open
Re: Move with tab on combo box
Posted: Tue Apr 09, 2019 2:11 pm
by dunbarx
Did you see my kluge about clicking at the loc of the combo?
And if it is indeed a combo, then why does tabbing through that layer not select the text of the currently displayed menuItem?
Craig
Re: Move with tab on combo box
Posted: Tue Apr 09, 2019 5:18 pm
by jacque
AlessioForconi wrote: Tue Apr 09, 2019 7:49 am
It's a combo.
I checked better and realized that being a button in fact, which I already knew, and having two other classic buttons on the card, the combo is inserted in a layer of buttons only.
This button layer starts after the fields one.
What I would like to do is (having 6 fields)
ftab on first field --> 1 --> 2 --> 3 --> combo --> 4 --> 5 --> 6[/quore]
The physical position on a card doesn't affect the layering order. You can set up the layers as your diagram shows and it will work.
How did you determine the button was a combo box? A combo has only one arrow at the right, it's slightly taller than an option button, and the text is left aligned. Option buttons have center aligned text, which your screenshot shows. Also, if you click into the text portion of a combo button, you'll get an insertion point and can type into it. An option button has no field and clicking its text simply expamds the choices.
Can you edit the button text?
Re: Move with tab on combo box
Posted: Tue Apr 09, 2019 6:19 pm
by dunbarx
We must resolve this.
@AlessioForconi
Do this, find the "menuMode" of this button,
Craig
Re: Move with tab on combo box
Posted: Wed Apr 10, 2019 8:44 am
by AlessioForconi
dunbarx wrote: Tue Apr 09, 2019 2:11 pm
Did you see my kluge about clicking at the loc of the combo?
I saw, but I realized that I have to put the place of
thatOptionButton something else that opens the menu, right?
dunbarx wrote: Tue Apr 09, 2019 2:11 pmAnd if it is indeed a combo, then why does tabbing through that layer not select the text of the currently displayed menuItem?
Craig
Sorry, I don't think I understand what you mean
Re: Move with tab on combo box
Posted: Wed Apr 10, 2019 2:56 pm
by dunbarx
Hi.
Maybe I am not understanding.
I have to put the place of thatOptionButton something else that opens the menu, right?
Just for this one small aspect of the discussion, are you interested in being able to "open" the menuItems in a menu style button programmatically?
If so, from the message box:
Code: Select all
click at the loc of button "yourComboOrOptionButtonOrWhatever"
Is the "loc" in the above code snippet what you meant by the "place"? And if so, do you see that ("something else") you can tell LC to click there?
Craig