TMenuMeasureItemEvent is the type for event handlers that render menu items in owner-Measuren menus.
TMenuMeasureItemEvent = procedure (Sender: TObject; ACanvas: TCanvas; var Width, Height: Integer) of object;
(Sender: TObject; ACanvas: TCanvas; var Width, Height: Integer) ( TMenuMeasureItemEvent)();
Menus
Sender is the TMenuItem instance that represents the menu item to be measured.
ACanvas represents the canvas where the menu item will be drawn. Use its methods, if necessary, to determine the size of the menu item.
Width and Height return the dimensions, in pixels, that should be used to draw the menu item.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|