GetGadgetState()
Syntax
Result = GetGadgetState(#Gadget)
Description
Return the gadget current state. This is a universal function which works for almost all gadgets:
- CheckBoxGadget(): returns 1 if checked, 0 else.
- ComboBoxGadget(): returns the current selected item index, -1 if none is selected.
- ListViewGadget(): returns the current selected item index, -1 if none is selected.
- OptionGadget(): returns 1 if activated, 0 else.
- PanelGadget(): returns the current panel index, -1 if no panel.
- ListIconGadget(): returns the current selected item index, -1 if none is selected.
- TreeGadget(): returns the current selected item index, -1 if none is selected.
Supported OS
Windows, AmigaOS, Linux