RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Menus.TAdvancedMenuDrawItemEvent Type

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

Pascal
TAdvancedMenuDrawItemEvent = procedure (Sender: TObject; ACanvas: TCanvas; ARect: TRect; State: TOwnerDrawState) of object;
C++
(Sender: TObject; ACanvas: TCanvas; ARect: TRect; State: TOwnerDrawState) ( TAdvancedMenuDrawItemEvent)();

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.  

State is a set indicating various aspects of the menu items state such as whether it is selected, checked, grayed, and so on. 

 

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