TextScreenGadget()

Syntax

Result = TextScreenGadget(#ScreenGadget, x, y, Width, Height, Text$)
Description
Creates a text gadget in the current GadgetList. This is a basic text area for displaying, not entering, text.

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.
Text$ The text to display.

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

The content can be changed with the function SetScreenGadgetText() and can be obtained with GetScreenGadgetText().

This Gadget doesn't receive any user events, and ScreenGadgetToolTip() can't be used with it.

Supported OS

All

<- StringScreenGadget() - ScreenGadget Index - TrackBarScreenGadget() ->