combobox Overview


The combobox object wraps the common Windows control with the same name.

A VARIANT item is used by most methods to identify items in the combobox:

Example

// Test get/set dropped
    ComboBox.dropped = true;
    if (!ComboBox.dropped)
        Env.LogError("Could not show combo dropdown");
    ComboBox.dropped = false;
		

Methods

newItem Adds a new item in the control and returns its index.
deleteItem Removes an item from the control.
resetContent Removes all items from the control.

Properties

dropped Set to true/false to show/hide the combo dropdown (list of items).
Returns true/false if the dropdown is visible/hidden.
count Returns the number of items in the control.
item Returns the text of the specified item.
itemData Gets/sets the user data associated with the specified item.
findItem Returns the zero-based index of the specified item, or -1 if none exists.
curSel Gets/sets the current selection.

 


© 2003 Lightweight Technologies. All rights reserved.