Vcl.CategoryButtons.TCatButtonDrawIconEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TCatButtonDrawIconEvent)(System::TObject* Sender, TButtonItem* const Button, Vcl::Graphics::TCanvas* Canvas, const System::Types::TRect &Rect, TButtonDrawState State, int &TextOffset);

Properties

Type Visibility Source Unit Parent
typedef public Vcl.CategoryButtons.hpp Vcl.CategoryButtons Vcl.CategoryButtons

Description

TCatButtonDrawIconEvent is the procedure type of the Vcl.CategoryButtons.TCategoryButtons.OnDrawIcon event.

The parameters expected by TCatButtonDrawIconEvent are listed in the following table:



Argument Meaning

Sender

Represents the TCategoryButtons instance that generated the event.

Button

Represents the button where the icon was drawn.

Canvas

Represents the canvas of the category buttons where the icon was drawn.

Rect

Represents the icon rectangle on the canvas.

State

Specifies the state of the button where the icon was drawn.

TextOffset

Represents the number of pixels from icon to caption.


See Also