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

TMenuItem.Hint

Contains hint text displayed for the menu item.

Declaration

Source position: menus.pp line 328

published property TMenuItem.Hint : TTranslateString
  read FHint
  write FHint
  stored IsHintStored;

Description

Hint is a TTranslateString property with the text displayed as a hint for the menu item. Its value may be overwritten with the Caption from an Action assigned to the menu item. As a TTranslateString property, the value can be localized using the i18n facilities in the Lazarus IDE when enabled for a project.

The hint text is displayed on the TStatusBar for a form when its AutoHint property is enabled. For a top-level menu item, the hint text does not appear until a menu item is selected / activated on the TMainMenu instance. Once an item has been selected on the menu, hint text is displayed whenever the mouse is hovered a menu item or when a new menu item is selected.

Hint is also assigned to the Hint property in Application (TApplication) for use in its OnShowHint event handler.


Version 3.2 Generated 2024-02-25 Home