.. _SetButtonText: SetButtonText ============================================================================== Sets the text that is displayed on a button. **Syntax**:: **Parameters** Name is the name of the button. Text is the caption on the button. **Remarks** If Text is omitted, the button is blank (has no caption). **Example** This hotkey toggles a button's caption from "On" to "Off" and back again:: **Related topics** - :ref:`CreateButton` - :ref:`CreateColoredButton` - :ref:`SetButtonColors` - :ref:`SetButtonHotkey` - :ref:`SetButtonText` - :ref:`SetButtonStyle` - :ref:`TargetButton`