SG_CheckBoxGadget

Syntax:

Result=SG_CheckBoxGadget(SG_GadgetID_L.l, X_Pos_L.l, Y_Pos_L.l, Width_L.l, Height_L.l, GadgetText_S.s, [Flags_L.l])

Parameters:

SG_GadgetID_L

=

The number of the gadget

X_Pos_L

=

the x-position of the gadget

Y_Pos_L

=

the y position of the gadget

Width_L

=

the width of the gadget

Height_L

=

the height of the gadget

GadgetText_S

=

the text of the item

[Flags_L]

=

'Flags' are always optional and can be composed of one or several (using the bitwise OR operator '|') of the following constants:

#PB_CheckBox_Right : Aligns the text to right

=

#PB_CheckBox_Center : Centers the text

=


Return Values:

Result

=

contains a pointer to the internal gadget structur. See the source of this lib for more information


Description:

Create a checkbox gadget in the current GadgetList. #Gadget will be the number returned by SG_EventGadgetID() command. The 'Text$' is a description of the checkbox which will be displayed to the right of it.

- SG_GetGadgetState() can be used to get the current gadget state (checked or unchecked).

- SG_SetGadgetState() can be used to change the gadget state (checked or unchecked).


Example:


Remarks:



Supported OS:   Windows