04-01-2016, 09:11 AM
Could someone be so kind as to post a snippet of simple code to construct a popup menu or popup/dropdown for a combo box? The sample projects make it clear how to create widgets in general and place them in a window or panel, but it appears that the structure of a popup menu is very different from a menu bar menu, using vectors of objects (another post refers to "hdi::core::EntryData" but all I can find in the docs is "Entry" and "EntryValue." Maybe I'm just used to menus as simple arrays of short strings and could be enlightened as to possibilities I'd not thought about before.
I wouldn't mind using a series of functions adding the items one by one, or maybe there's a simple, straightforward way to build a menu from a simple array such as:
static const char* const values[] = {"15", "18", "20", "24", "30", "30"};
Any suggestions would be very much appreciated.
--Rick
I wouldn't mind using a series of functions adding the items one by one, or maybe there's a simple, straightforward way to build a menu from a simple array such as:
static const char* const values[] = {"15", "18", "20", "24", "30", "30"};
Any suggestions would be very much appreciated.
--Rick