EditorGadget3D()
Syntax
Result = EditorGadget3D(#Gadget3D, x, y, Width, Height [, Flags])Description
Creates an Editor 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 the EventGadget3D() function.
'Flags' can be the following value:#PB_Editor3D_ReadOnly: The user cannot edit the text in the gadget.To add a 'mini help' to this gadget, use GadgetToolTip3D().
The following functions can be used to act on the editor content:
- AddGadgetItem3D(): Add a text line.
- CountGadgetItems3D(): Return the number of lines in the editor gadget.
- GetGadgetItemText3D(): Get the specified line text.
- GetGadgetText3D(): Get the text content of the editor gadget.
- RemoveGadgetItem3D(): Remove a line in the editor.
- ClearGadgetItems3D(): Clear the text content.
- SetGadgetItemText3D(): Set the specified line text.
- SetGadgetText3D(): Change the text content of the editor gadget.
- SetGadgetAttribute3D(): With the following attribute:#PB_Editor3D_ReadOnly: Set the readonly state. (0 means editable, nonzero means readonly)- GetGadgetAttribute3D(): With the following attribute:#PB_Editor3D_ReadOnly: Get the readonly state. (0 means editable, nonzero means readonly)
Supported OS
All