EditorGadget3D()

Syntax

Result = EditorGadget3D(#Gadget3D, x, y, Width, Height [, Flags])
Description
Creates an editor 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.
Flags (optional) It can be one of the following value:
  #PB_Editor3D_ReadOnly: The user cannot edit the text in the gadget.

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 editor content:

- GetGadgetText3D(): Get the text content of the editor gadget.
- SetGadgetText3D(): Change the text content of the editor gadget.
- SetGadgetAttribute3D(): With the following attribute:
  #PB_Editor3D_ReadOnly: Set the read-only state. (0 means editable, nonzero means read-only)
- GetGadgetAttribute3D(): With the following attribute:
  #PB_Editor3D_ReadOnly: Get the read-only state. (0 means editable, nonzero means read-only)

Supported OS

All

<- DisableGadget3D() - Gadget3D Index - FrameGadget3D() ->