SG_GetGadgetToggleState

Syntax:

Result=SG_GetGadgetToggleState(SG_GadgetID_L.l)

Parameters:

SG_GadgetID_L

=

The number of the gadget


Return Values:

Result

=

the current state of the Button. 1 for down and or 0 for none. -1 if the button has no toggle-flag


Description:

This function does only work with

ButtonGadget

ButtonImageGadget

with the Flag #PB_Button_Toggle set

EndWith


Example:


Remarks:

For Buttons this function returns the same value as SG_GetGadgetState()



Supported OS:   Windows