Vcl.Menus.TAdvancedMenuDrawItemEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

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
type
typedef
public
Vcl.Menus.pas
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.

See Also