[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Notifies the widgetset class of a change to the caption text for the control.
Source position: stdctrls.pp line 1241
protected procedure TCustomButton.WSSetText( |
const AText: string |
); override; |
AText |
|
New value for the caption text in the control. |
WSSetText is an overridden method used to notify the widgetset class instance when the value in the caption text has been changed. No actions are performed in the method when the handle for the control has not been allocated, or at design-time.
WSSetText ensures that Ampersand (&) characters used to define an accelerator key in AText are handled for the widgetset class. The Ampersand character(s) are removed from AText, and the virtual key code equivalent is stored in the Shortcut property. By default, the Shortcut uses the ssAlt shift modifier for the accelerator key.
The SetShortCut method in the widgetset class is called to store values from both Shortcut and ShortCutKey2.
The inherited WSSetText method is called prior to exit.
|
Shortcut key for the control. |
|
|
Secondary shortcut key for the control. |
|
|
String with the text or caption for the control. |
|
|
The text displayed for the control. |
|
|
Converts a virtual key code and modifier to a shortcut value. |
|
|
Gets the virtual key code for the specified character value. |
Version 4.0 | Generated 2025-05-03 | Home |