SG_TextGadget

Syntax:

Result=SG_TextGadget(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_Text_Center : The text is centered in the gadget.

=

#PB_Text_Right : The text is right aligned.

=

#PB_Text_Border : A sunken border is drawn around the gadget.

=


Return Values:

Result

=

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


Description:

Creates a Text gadget in the current screen. A TextGadget is a basic text area for displaying, not entering, text.

The content can be changed with the command SetGadgetText() and can be obtained with GetGadgetText().


Example:


Remarks:



Supported OS:   Windows