ComboBoxGadget3D()
Syntax
Result = ComboBoxGadget3D(#Gadget3D, x, y, Width, Height [, Flags])Description
Creates a ComboBox gadget in the current GadgetList. Once a ComboBox is created, its list of items is empty.
Parameters
#Gadget3D A number to identify the new 3D gadget. #PB_Any can be used to auto-generate this number. x, y, Width, Height The position and dimensions of the new gadget. Flags (optional) It can be a combination (using the '|' operator) of the following constants: #PB_ComboBox3D_Editable : Makes the ComboBox editable
Return value
Nonzero on success, zero otherwise. If #PB_Any was used as the #Gadget3D parameter then the return-value is the auto-generated gadget number on success.
Remarks
To add a 'mini help' to this gadget, use GadgetToolTip3D().
The following functions can be used to act on the list contents:
- AddGadgetItem3D(): Add an item.
- GetGadgetItemText3D(): Returns the gadget item text.
- CountGadgetItems3D(): Count the items in the current combobox.
- ClearGadgetItems3D(): Remove all the items.
- RemoveGadgetItem3D(): Remove an item.
- SetGadgetItemText3D(): Changes the gadget item text.
- GetGadgetState3D(): Get the index (starting from 0) of the current element.
- GetGadgetText3D(): Get the (text) content of the current element.
- SetGadgetState3D(): Change the selected element.
- SetGadgetText3D(): Set the displayed text. If the ComboBoxGadget is not editable, the text must be in the dropdown list.
Supported OS
All