SG_SetGadgetToggleState

Syntax:

SG_SetGadgetToggleState(SG_GadgetID_L.l, State_L.l)

Parameters:

SG_GadgetID_L

=

The number of the gadget

State_L

=

the new State of the Button. 1 for pushed, 0 for released


Return Values:


Description:

This function does only work with

ButtonGadget

ButtonImageGadget

with the Flag #PB_Button_Toggle set

EndWith


Example:


Remarks:

For Buttons the function SG_SetGadgetState() can do the same



Supported OS:   Windows