The PlusWnd::Combo_AddItem function adds an item in a ComboBoxControl.
[number] Combo_AddItem( [string] ControlId, [string] Label, [number, optional] ItemData, [string, optional] ImageId );
If the new item is added successfully, the return value is the index of the new item in the combo's list. If not, the return value is -1.
This function typically fails for the following reason:
Messenger Plus! Live 4.50 and above: to associate an icon with an item, the image must be specified in the ComboBox properties in the XML file ("Images" element). The height of the first image in the list defines the height of every item in the list. Also, remember that the ImageId parameter is the Id attribute specified with the image and not the image's name (its file name).
Object | PlusWnd |
---|---|
Availability | Messenger Plus! Live 4.00 |