SG_OptionGadget

Syntax:

Result=SG_OptionGadget(SG_GadgetID_L.l, X_Pos_L.l, Y_Pos_L.l, Width_L.l, Height_L.l, GadgetText_S.s)

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


Return Values:

Result

=

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


Description:

Creates an OptionGadget in the current GadgetList. The first time this function is called, a group is created and all following calls of SG_OptionGadget() will add a gadget to this group. To finish the group, just create a gadget of another type. These kind of gadgets are very useful as only one gadget from the group can be selected at any time.


Example:


Remarks:

A click on an currently activ gadget resets the gadget, so that no item of the list is selected.



Supported OS:   Windows