ComboBox Menus and Tags

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

ComboBox Menus and Tags

Post 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.
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: ComboBox Menus and Tags

Post 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
dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: ComboBox Menus and Tags

Post by dglass »

OK.

Thanks!
Post Reply