GetScreenGadgetState()

Syntax

Result = GetScreenGadgetState(#ScreenGadget)
Description
Returns the current state of the gadget.

Parameters

#ScreenGadget The gadget to use.

Return value

The current state of the gadget.

Remarks

This function is supported by the following gadgets:

- CheckBoxScreenGadget(): returns 1 if checked, 0 otherwise.
- ComboBoxScreenGadget(): returns the currently selected item index, -1 if none is selected.
- ImageScreenGadget(): returns the TextureID of the currently displayed image.
- ListViewScreenGadget(): returns the currently selected item index, -1 if none is selected.
- OptionScreenGadget(): returns 1 if activated, 0 otherwise.
- PanelScreenGadget(): returns the current panel index, -1 if no panel.
- ProgressBarScreenGadget(): returns the current value of the ProgressBar.
- ScrollBarScreenGadget(): returns the current slider position.

See Also

SetScreenGadgetState()

Supported OS

All

<- FreeScreenGadget() - ScreenGadget Index - GetScreenGadgetText() ->