Vcl.Menus.TMenuDrawItemEvent
C++
typedef void __fastcall (__closure *TMenuDrawItemEvent)(System::TObject* Sender, Vcl::Graphics::TCanvas* ACanvas, const System::Types::TRect &ARect, bool Selected);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | Vcl.Menus.hpp | Vcl.Menus | Vcl.Menus |
Description
TMenuDrawItemEvent 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.
Selected indicates whether the menu item is selected (that is, if it will be clicked if the user presses return)