Vcl.CategoryButtons.TCategoryButtons.DrawButton
Delphi
procedure DrawButton(const Button: TButtonItem; Canvas: TCanvas; Rect: TRect; State: TButtonDrawState); virtual;
C++
virtual void __fastcall DrawButton(TButtonItem* const Button, Vcl::Graphics::TCanvas* Canvas, const System::Types::TRect &Rect, TButtonDrawState State);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.CategoryButtons.pas Vcl.CategoryButtons.hpp |
Vcl.CategoryButtons | TCategoryButtons |
Description
Draws a button.
The DrawButton method triggers the default settings for drawing a button. These settings include the color of the button, shadow, or font when the button is selected, focused, or when the cursor moves over an item.