EditorScreenGadget()

Syntax

Result = EditorScreenGadget(#ScreenGadget, x, y, Width, Height [, Flags])
Description
Creates an editor gadget in the current GadgetList.

Parameters

#ScreenGadget A number to identify the new 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_Editor_ReadOnly: The user cannot edit the text in the gadget.

Return value

Nonzero on success, zero otherwise. If #PB_Any was used as the #ScreenGadget parameter then the return-value is the auto-generated gadget number on success.

Remarks

To add a 'mini help' to this gadget, use ScreenGadgetToolTip().

The following functions can be used to act on the editor content:

- GetScreenGadgetText(): Get the text content of the editor gadget.
- SetScreenGadgetText(): Change the text content of the editor gadget.

Supported OS

All

<- DisableScreenWindow() - ScreenGadget Index - EventScreenGadget() ->