SG_GetGadgetState | |||
Syntax: | |||
Result=SG_GetGadgetState(SG_GadgetID_L.l) | |||
Parameters: | |||
| |||
Return Values: | |||
| |||
Description: | |||
This is a universal function which works for almost all gadgets: - EditorGdget(): returns the first item which has a set state - CheckBoxGadget(): returns #PB_ListIcon_Selected if checked, 0 otherwise. - ListIconGadget(): returns the currently selected item index, -1 if none is selected. - OptionGadget(): returns #PB_ListIcon_Selected if activated, 0 otherwise. - ScrollBarGadget(): returns the current slider position. - TrackBarGadget(): returns the current position of the TrackBar (value inside the minimum - maximum range). | |||
Example: | |||
| |||
Remarks: | |||
| |||
|