I want a ComboBox like SELECT in HTML
Posted on 2003-10-23
This should be easy, but I haven't got time to find the right/best way of doing it.
I have a dropdown (TComboBox or TComboBoxEx) that i want to populate with data (key/value pairs), but rather than having it return the text the user selects I want to return the key associated with it. (This is just like a <SELECT> with <OPTION VALUE=1>Text etc. works in HTML).
What's the best approach? TComboBoxEx using the Data pointer? If so, how?
Please give an example.