SpinGadget3D()
Syntax
Result = SpinGadget3D(#Gadget3D, x, y, Width, Height, Minimum, Maximum [, Flags])Description
Creates a spin gadget in the current GadgetList. If #PB_Any is used as '#Gadget3D' parameter, the new gadget number will be returned as 'Result'. #Gadget3D will be the number returned by EventGadget3D() function.
'Flags' is an optional parameter and can be composed of one of the following constants:#PB_Spin3D_ReadOnly : The StringGadget is not editable, the number is only changeable by the arrows #PB_Spin3D_Numeric : The SpinGadget will automatically update the text with value of the state, so SetGadgetText is not needed.To add a 'mini help' to this gadget, use GadgetToolTip3D().
The following functions can be used to act on a SpinGadget:
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