View Full Version : Initializing ComboBox controls using DUI API

March 30th, 2006, 03:51 PM
The DUI designer provides the capability for defining name/value pairs on ComboBox controls. The XML contains \r delimited names in the Values tag, and values in the Values2 tag.

How do I accomplish the same thing from within the DUI API? I can use the ControlSetString function on the "Strings" parameter to set the list of names that appear, but how do I set the values that I actually want to associate with those names?

I need to dynamically populate the combo box with names that are matched to registry key names.


March 30th, 2006, 04:59 PM
Hi, in this case, when the user selects a radiobutton, grab the event in the onevent callback and get the string there. you can assign a value or store the string from there. i usually just keep track of the string value as it makes easy to show the dui page.

March 30th, 2006, 05:25 PM
Hmmm. Are we talking about the same thing here?

March 30th, 2006, 05:39 PM
Hmmm. Are we talking about the same thing here?

OOPPs :oops: no we are not... was thinking you were using Lua...

March 30th, 2006, 05:43 PM
You can't assign those extra values, you'll have to keep track of those in your C code as well.