Move with tab on combo box

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Move with tab on combo box

Post by jmburnod » Tue Apr 09, 2019 9:27 am

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
https://alternatic.ch

AlessioForconi
Posts: 90
Joined: Sun Feb 15, 2015 2:51 pm

Re: Move with tab on combo box

Post by AlessioForconi » Tue Apr 09, 2019 10:54 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Move with tab on combo box

Post by dunbarx » Tue Apr 09, 2019 2:11 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7228
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Move with tab on combo box

Post by jacque » Tue Apr 09, 2019 5:18 pm

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?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Move with tab on combo box

Post by dunbarx » Tue Apr 09, 2019 6:19 pm

We must resolve this.

@AlessioForconi

Do this, find the "menuMode" of this button,

Craig

AlessioForconi
Posts: 90
Joined: Sun Feb 15, 2015 2:51 pm

Re: Move with tab on combo box

Post by AlessioForconi » Wed Apr 10, 2019 8:44 am

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 pm
And 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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Move with tab on combo box

Post by dunbarx » Wed Apr 10, 2019 2:56 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”