SetGadgetText()

Syntax

SetGadgetText(#Gadget, Text$)
Description
Change the gadget text content of the specified gadget.

Parameters

#Gadget The gadget to use.
Text$ The new text to set.

Return value

None.

Remarks

This function is especially useful for:

- ButtonGadget(): change the text of the ButtonGadget.
- ComboBoxGadget(): Set the displayed text. If the ComboBoxGadget is not editable, the text must be in the dropdown list.
- DateGadget(): change the input mask for the dates in the gadget. See FormatDate() for the format of the Text$ parameter.
- EditorGadget(): 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)".
- ExplorerComboGadget(): change the current displayed directory.
- ExplorerListGadget(): change the current displayed directory and/or the pattern for files (see ExplorerListGadget() for more details).
- ExplorerTreeGadget(): change the current selected directory and/or the pattern for files (see ExplorerTreeGadget() for more details).
- FrameGadget(): change the title of the FrameGadget.
- HyperLinkGadget(): change the text of the HyperLinkGadget.
- ListViewGadget(): selects the item that exactly matches the given text.
- StringGadget(): change the content of the StringGadget.
- TextGadget(): change the content of the TextGadget.
- TreeGadget(): change the text of the currently selected item.
- WebGadget(): change the current URL.

See Also

GetGadgetText(), GetGadgetItemText(), SetGadgetItemText()

Supported OS

All

<- SetGadgetState() - Gadget Index - ShortcutGadget() ->