Sign in Join
FPDoc Onlineexperiment

TMenuItem.OnDrawItem property

Member of TMenuItempublishedIn unit Menus

Event handler signalled to draw the menu item.

Declaration

pascal
property OnDrawItem: TMenuDrawItemEvent read FOnDrawItem write FOnDrawItem;

Description

OnDrawItem is a TMenuDrawItemEvent property with the event handler signalled to draw the menu item. OnDrawItem is signalled (when assigned) from the DoDrawItem method using the canvas, rectangle, and drawing state passed as arguments.

A menu item may use the OnDrawItem handler found in a parent Menu if it does not have one of its own.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.