GetGadgetState3D()

Syntax

Result = GetGadgetState3D(#Gadget3D)
Description
Returns the current state of the gadget. This is a universal function which works for almost all gadgets:

- ButtonGadget3D(): returns 1 if a #PB_Button3D_Toggle button is toggled, else 0.
- CheckBoxGadget3D(): returns 1 if checked, 0 otherwise.
- ComboBoxGadget3D(): returns the currently selected item index, -1 if none is selected.
- ImageGadget3D(): returns the TextureID of the currently displayed image.
- ListViewGadget3D(): returns the currently selected item index, -1 if none is selected.
- OptionGadget3D(): returns 1 if activated, 0 otherwise.
- PanelGadget3D(): returns the current panel index, -1 if no panel.
- ProgressBarGadget3D(): returns the current value of the ProgressBar.
- ScrollBarGadget3D(): returns the current slider position.
- SpinGadget3D(): returns the current value of the SpinGadget.

Supported OS

All

<- GetGadgetItemText3D() - Gadget3D Index - GetGadgetText3D() ->