Page 1 of 1

menuHistory of a combo box

Posted: Sat May 21, 2011 6:11 am
by sp27
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

Re: menuHistory of a combo box

Posted: Sat May 21, 2011 8:22 am
by jmburnod
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

Re: menuHistory of a combo box

Posted: Sat May 21, 2011 1:37 pm
by sp27
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

Re: menuHistory of a combo box

Posted: Sat May 21, 2011 1:47 pm
by jmburnod
Hi,
Anybody else seeing this in Windows?
It work for me on mac (rev 4.0 and LC 4.51)

Jean-Marc

Re: menuHistory of a combo box

Posted: Sat May 21, 2011 2:47 pm
by SparkOut
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.