[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Menus' (#lcl)

TMenuItem.Caption

The caption text displayed for the menu item.

Declaration

Source position: menus.pp line 316

published property TMenuItem.Caption : TTranslateString
  read FCaption
  write SetCaption
  stored IsCaptionStored;

Description

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 the ShortCut key for the menu item.

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.


Version 3.2 Generated 2024-02-25 Home