SG_ImageGadget

Syntax:

Result=SG_ImageGadget(SG_GadgetID_L.l, X_Pos_L.l, Y_Pos_L.l, Width_L.l, Height_L.l, ImageID_L.l, [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

ImageID_L

=

the image ID

[Flags_L]

=

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

#PB_Image_Border : display a sunken border around the image.

=


Return Values:

Result

=

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


Description:

Creates an Image gadget in the current screen. The ImageID represents an image and can be obtained by using UseImage() or ImageID() from the Image library. The image dimensions autofit to the gadget size. The gadget have normal input, so user interactions (mouse clicks, etc.) are reported.

- SG_SetGadgetState(): Change the current Image of the gadget.


Example:


Remarks:



Supported OS:   Windows