OptionGadget3D()

Syntax

Result = OptionGadget3D(#Gadget3D, x, y, Width, Height, Text$)
Description
Creates an OptionGadget in the current GadgetList. The first time this function is called, a group is created and all following calls of OptionGadget3D() will add a gadget to this group. To finish the group, just create a gadget of another type. These kind of gadgets are very useful as only one gadget from the group can be selected at any time.

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.
Text$ The text to display, near the selection button.

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().

Supported OS

All

<- OpenGadgetList3D() - Gadget3D Index - PanelGadget3D() ->