menuHistory of a 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

Post Reply
sp27
Posts: 135
Joined: Mon May 09, 2011 3:01 pm

menuHistory of a combo box

Post by sp27 » Sat May 21, 2011 6:11 am

Section 7.13.2 of User Guide (LC 4.6.1) says
set the button's menuHistory property to the line number of the newly chosen item. This ensures that the new choice will be the one under the mouse pointer the next time the user clicks the menu.
Is this supposed to have an effect in combo box menus? When I click the down-arrow in my combo boxes, no choice is highlighted no matter what I set the button's menuHistory to.

Thanks,

sp27

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: menuHistory of a combo box

Post by jmburnod » Sat May 21, 2011 8:22 am

Hi sp27,
Is this supposed to have an effect in combo box menus? When I click the down-arrow in my combo boxes, no choice is highlighted no matter what I set the button's menuHistory to
Yes.
The menuhistory return the number of the selected item.
If you set it, the label of the combobox change.

I do not still know how obtains a "checkMark" of the selected menuitem.

Jean-Marc
https://alternatic.ch

sp27
Posts: 135
Joined: Mon May 09, 2011 3:01 pm

Re: menuHistory of a combo box

Post by sp27 » Sat May 21, 2011 1:37 pm

Not in my experience--not in a combo box. None if the choices is highlighted when I click the down arrow, neither when I have previously made a choice by clicking one of the options, nor when I have set the label and menuHistory through script. This is in Windows 7, 64-bit, LC 4.6.1.

When I set the button type to Option, it behaves as expected, but when it is set to Combo box, no highlight and no default choice is presented when the down arrow is clicked.

Anybody else seeing this in Windows?

sp27

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: menuHistory of a combo box

Post by jmburnod » Sat May 21, 2011 1:47 pm

Hi,
Anybody else seeing this in Windows?
It work for me on mac (rev 4.0 and LC 4.51)

Jean-Marc
https://alternatic.ch

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: menuHistory of a combo box

Post by SparkOut » Sat May 21, 2011 2:47 pm

Trying on Windows (7, with latest LC version), if the focus is already in the combo box (ie the insertion point/I beam cursor is blinking in the combo box) then no selected hilite is given, although the label is correctly set to the menuHistory line.
If the focus is not on the combo box when the dropdown arrow is selected, then the menuHistory line is hilited, along with the label in the "field" part of the combobox button (yes, it's a button... oddly enough).
As a test, try adding "focus on nothing" to the end of the menuPick handler in the combobox script and see if that shows the same behaviour consistently.

Post Reply