Vcl.Menus.TAdvancedMenuDrawItemEvent
C++
typedef void __fastcall (__closure *TAdvancedMenuDrawItemEvent)(System::TObject* Sender, Vcl::Graphics::TCanvas* ACanvas, const System::Types::TRect &ARect, Winapi::Windows::TOwnerDrawState State);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | Vcl.Menus.hpp | Vcl.Menus | Vcl.Menus |
Description
TAdvancedMenuDrawItemEvent is the type for event handlers that render menu items in owner-drawn 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.