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

TMenu.OwnerDraw

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

Declaration

Source position: menus.pp line 432

published property TMenu.OwnerDraw : Boolean
  read FOwnerDraw
  write FOwnerDraw
  default False;

Description

OwnerDraw is a Boolean property which indicates if the menu items are drawn using the OnDrawItem event handler. The default value for the property is False.

OwnerDraw is used when the widgetset class renders the menu. If OwnerDraw is False, the default drawing routines for the platform are used to draw the menu control. Otherwise, the OnMeasureItem and OnDrawItem event handlers are signalled for the purpose.

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

See also

TMenu.OnDrawItem

  

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

TMenu.OnMeasureItem

  

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

TMenuItem.OnDrawItem

  

Event handler signalled to draw the menu item.

TMenuItem.OnMeasureItem

  

Event handler signalled to get the Width and Height for the menu item.


Version 4.0 Generated 2025-05-03 Home