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


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

Return value



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)".
- 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()
<- SetGadgetState() - Gadget Index - SpinGadget() ->