[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
The caption text displayed for the menu item.
Source position: menus.pp line 325
published property TMenuItem.Caption : TTranslateString |
Caption is a TTranslateString property which contains the text displayed for the menu item. Caption can include a prefixed character which is used as the accelerator key for the menu item. Use the value in cHotkeyPrefix to identify the character used as accelerator for the menu item. The accelerator key is drawn at run-time using the style implemented for a specific widgetset; this generally involves highlighting and/or underlining the accelerator key.
For example:
AMenuItem.Caption := cHotkeyPrefix + 'Open'; // or AMenuItem.Caption := '&Open';
Changing the value in the property causes the widgetset class to be notified when the Handle has been allocated and the Parent property is assigned.
|
Prefix used in a menu item caption to identify a hot key (accelerator). |
|
|
Alias for the String type. |
Version 4.0 | Generated 2025-05-03 | Home |