Vcl.CategoryButtons.TCatButtonDrawEvent
C++
typedef void __fastcall (__closure *TCatButtonDrawEvent)(System::TObject* Sender, TButtonItem* const Button, Vcl::Graphics::TCanvas* Canvas, const System::Types::TRect &Rect, TButtonDrawState State);
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| typedef | public | 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.  |