SpinGadget3D()

Syntax

Result = SpinGadget3D(#Gadget3D, x, y, Width, Height, Minimum, Maximum)
Description
Creates a spin 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.
Minimum, Maximum The minimum and maximum values that the SpinGadget can take.

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 functions can be used to act on the gadget:

GetGadgetState3D(): Get the current gadget value.
SetGadgetState3D(): Change the gadget value. For displaying the new value you still must use SetGadgetText3D()!
GetGadgetText3D(): Get the text contained in the gadget.
SetGadgetText3D(): Change the text contained in the gadget.
GetGadgetAttribute3D(): With one of the following attributes:
  #PB_Spin3D_Minimum   : Returns the minimum value.
  #PB_Spin3D_Maximum   : Returns the maximum value.
SetGadgetAttribute3D(): With one of the following attributes:
  #PB_Spin3D_Minimum   : Changes the minimum value.
  #PB_Spin3D_Maximum   : Changes the maximum value.

Supported OS

All

<- SetGadgetText3D() - Gadget3D Index - StringGadget3D() ->