Show: Delphi
C++
Display Preferences
Vcl.Menus.TMenuMeasureItemEvent
From XE2 API Documentation
C++
typedef void __fastcall (__closure *TMenuMeasureItemEvent)(System::TObject* Sender, Vcl::Graphics::TCanvas* ACanvas, int &Width, int &Height);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| typedef | public | Vcl.Menus.hpp | Vcl.Menus | Vcl.Menus |
Description
TMenuMeasureItemEvent is the type for event handlers that render menu items in owner-Measuren 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.