View Full Version : Combobox Handling

January 10th, 2004, 12:45 PM
If you wanted to set some item in a combox box (sometimes called a dropdown box) there are several ways to go about it. A reliable on is by using sendmessage. The only tricky part is the targetting. I've uploaded an example for MS Wordpad, this example manipulates the font combobox.

You can:

Set the index ( select a font from the list )
Get the index ( see what the index is of the currently selected item (not the string))
Get the total count of items ( get the total number of fonts ).

Download here:

Combobox Example (http://www.girder.nl/Examples/ComboBox_Examples.GML)

Have fun

November 27th, 2005, 08:37 AM
The link doesn't work anymore...