TMenu.OwnerDraw property
Indicates if the menu items are drawn using the OnDrawItem event handler.
Declaration
property 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.
OwnerDraw, OnDrawItem, and OnMeasureItem are not supported on the macOS Carbon, GTK2, QT4, QT5, and QT6 widgetsets.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
