Page 1 of 1

ComboBox Menus and Tags

Posted: Thu Jun 09, 2011 7:06 am
by dglass
It seems that the menu attached to a combobox doesn't support the use of a hidden tag value as other menus do. At least my attempts to use the tag syntax (/| - empty accelerator, pipe, and then tag text), did not result in a hidden tag value. :(

I've come up with a way to do it by putting the display values into the combobox button, and the values I want hidden into a custom property of the combobox, and then finding the proper value in the custom property, and using that in the menupick handler.

Is there a better* way?

* - for various definitions of 'better', i.e. more elegant, efficient, maintainable, whatever.

Re: ComboBox Menus and Tags

Posted: Thu Jun 09, 2011 5:05 pm
by Klaus
Hi dglass,

in my opinion a "combo box" is more some kind of field than a "real" menu button :D
And you are right, the menu tagging scheme does not "stick" with conbo boxes, so your solution seems to be fine.


Best

Klaus

Re: ComboBox Menus and Tags

Posted: Thu Jun 09, 2011 6:00 pm
by dglass
OK.

Thanks!