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

TMenuDrawItemEvent

Specifies an event handler signalled to draw a menu item to a canvas.

Declaration

Source position: menus.pp line 115

type TMenuDrawItemEvent = procedure(

  Sender: TObject;

  ACanvas: TCanvas;

  ARect: TRect;

  AState: TOwnerDrawState

) of object;

Arguments

Sender

  

Object for the event notification.

ACanvas

  

Canvas used to render the menu item.

ARect

  

Display rectangle for the menu item.

AState

  

Owner-drawn state for the menu item.