ImageScreenGadget()
Syntax
Result = ImageScreenGadget(#ScreenGadget, x, y, Width, Height, TextureID [, Flags])Description
Creates an image gadget in the current GadgetList.
Parameters
#ScreenGadget A number to identify the new gadget. #PB_Any can be used to auto-generate this number. x, y, Width, Height The position and dimensions of the new gadget. TextureID The texture to display in the gadget. TextureID() can be used to get a valid value. If this value is sets to zero, then no texture is displayed. Flags (optional) It can be one of the following constants: #PB_Image_Border : display a sunken border around the image.
Return value
Nonzero on success, zero otherwise. If #PB_Any was used as the #ScreenGadget parameter then the return-value is the auto-generated gadget number on success.
Remarks
To add a 'mini help' to this gadget, use ScreenGadgetToolTip().
The following function can be used to act on the gadget:
- SetScreenGadgetState(): Change the current Image of the gadget. A valid TextureID can be easily obtained with the TextureID() function. If the TextureID is sets to zero, then the texture is removed from the gadget.
Supported OS
All