ComboBoxGadget()
Syntax
ComboBoxGadget(#Gadget, x, y, Width, Heigth [, Flags])
Description
Create a combobox gadget in the current GadgetList. #Gadget will be the numeric identifiant returned by EventGadgetID() command. Once a ComboBox is created, its list of item is empty. The following commands can be used to act on the list content:
- AddGadgetItem(): Add an item
- RemoveGadgetItem(): Remove an item
- ClearGadgetItemList(): Remove all the items
SetGadgetState() can be used to change the selected element.
GetGadgetState() can be used to get the index of the current element.
'Flags' are optionnals and can be composed of one of the following constants:#PB_ComboBox_Editable : Makes the combobox editable #PB_ComboBox_LowerCase : All text entered in the combobox will be converted in lower case #PB_ComboBox_UpperCase : All text entered in the combobox will be converted in upper case
Supported OS
Windows, AmigaOS, Linux