ImageGadget3D()

Syntax

Result = ImageGadget3D(#Gadget3D, x, y, Width, Height, TextureID [, Flags])
Description
Creates an image gadget in the current GadgetList.

Parameters

#Gadget3D A number to identify the new 3D 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 3D gadget. TextureID() can be used to get a valid value. If this value is sets to zero, then the texture is removed from the gadget.
Flags (optional) It can be one of the following constants:
  #PB_Image3D_Border : display a sunken border around the image.

Return value

Nonzero on success, zero otherwise. If #PB_Any was used as the #Gadget3D parameter then the return-value is the auto-generated gadget number on success.

Remarks

To add a 'mini help' to this gadget, use GadgetToolTip3D().

The following function can be used to act on the gadget:

- SetGadgetState3D(): 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

<- HideGadget3D() - Gadget3D Index - IsGadget3D() ->