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

TMenu.OnMeasureItem

Event handler signalled to get the width and height for a menu item on the menu.

Declaration

Source position: menus.pp line 434

published property TMenu.OnMeasureItem : TMenuMeasureItemEvent
  read FOnMeasureItem
  write FOnMeasureItem;

Description

Remark: OwnerDraw, OnDrawItem, and OnMeasureItem are not supported on the macOS Carbon, GTK2, QT4, QT5, and QT6 widgetsets.

See also

TMenu.OwnerDraw

  

Indicates if the menu items are drawn using the OnDrawItem event handler.

TMenu.OnDrawItem

  

Event handler signalled to draw a menu item on the menu.


Version 4.0 Generated 2025-05-03 Home