SG_ButtonImageGadget | |||||||||||||||||||||||||||
Syntax: | |||||||||||||||||||||||||||
Result=SG_ButtonImageGadget(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: | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Return Values: | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Description: | |||||||||||||||||||||||||||
Create a button gadget in the current GadgetList. SG_GadgetID_L will be the number returned by SG_EventGadgetID() command. The ImageID represents a Image file and can be obtained by using UseImage() or ImageID() from the Image library. - SG_SetGadgetState() can be used to change the current image of the gadget. A valid ImageID can be easily got with the UseImage() or ImageID() commands. | |||||||||||||||||||||||||||
Example: | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Remarks: | |||||||||||||||||||||||||||
The image will be resized to fit the button. This can take a while with big images. | |||||||||||||||||||||||||||
|