Vcl.CategoryButtons.TCatButtonDrawEvent
Delphi
TCatButtonDrawEvent = procedure(Sender: TObject;
const Button: TButtonItem; Canvas: TCanvas; Rect: TRect;
State: TButtonDrawState) of object;
C++
typedef void __fastcall (__closure *TCatButtonDrawEvent)(System::TObject* Sender, TButtonItem* const Button, Vcl::Graphics::TCanvas* Canvas, const Winapi::Windows::TRect &Rect, TButtonDrawState State);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
type typedef |
public | Vcl.CategoryButtons.pas Vcl.CategoryButtons.hpp |
Vcl.CategoryButtons | Vcl.CategoryButtons |
Description
TCatButtonDrawEvent is a procedure called by the drawing events.
The parameters expected by TCatButtonDrawEvent are listed in the following table:
| Argument | Meaning |
|---|---|
|
Sender |
Represents the TCategoryButtons instance that generated the event. |
|
Button |
Represents the button drawn. |
|
Canvas |
Represents the canvas of the category buttons where the button was drawn. |
|
Rect |
Represents the button rectangle on the canvas. |
|
State |
Specifies the state of the button. |