SetScreenGadgetText()

Syntax

SetScreenGadgetText(#ScreenGadget, Text$)
Description
Change the gadget text content of the specified gadget.

Parameters

#ScreenGadget The gadget to use.
Text$ The new gadget text.

Return value

None.

Remarks

This function is supported by the following gadgets:

- ButtonScreenGadget(): change the text of the ButtonGadget.
- ComboBoxScreenGadget(): Set the displayed text. If the ComboBoxGadget is not editable, the text must be in the dropdown list.
- EditorScreenGadget(): change the text content of the editor gadget. If you want to add several lines of text at once, separate them with "Chr(13)+Chr(10)".
- ListViewScreenGadget(): selects the item that exactly matches the given text.
- StringScreenGadget(): change the content of the StringGadget.
- TextScreenGadget(): change the content of the TextGadget.

Supported OS

All

<- SetScreenGadgetState() - ScreenGadget Index - SplitterScreenGadget() ->