RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Menus.TMenuDrawItemEvent Type

TMenuDrawItemEvent is the type for event handlers that render menu items in owner-drawn menus.

Pascal
TMenuDrawItemEvent = procedure (Sender: TObject; ACanvas: TCanvas; ARect: TRect; Selected: Boolean) of object;
C++
(Sender: TObject; ACanvas: TCanvas; ARect: TRect; Selected: Boolean) ( TMenuDrawItemEvent)();

Menus

Sender is the TMenuItem instance that represents the menu item to be drawn. 

ACanvas provides a drawing surface on which to draw the menu item. 

ARect indicates the boundaries (in pixels) of the menu item on ACanvas.  

Selected indicates whether the menu item is selected (that is, if it will be clicked if the user presses return) 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!