Vcl.ComCtrls.TTBCustomDrawEvent
Delphi
TTBCustomDrawEvent = procedure(Sender: TToolBar; const ARect: TRect;
var DefaultDraw: Boolean) of object;
C++
typedef void __fastcall (__closure *TTBCustomDrawEvent)(TToolBar* Sender, const System::Types::TRect &ARect, bool &DefaultDraw);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | Vcl.ComCtrls |
Description
TTBCustomDrawEvent is the type of a toolbar's TToolBar.OnCustomDraw event handlers.
Sender
is the toolbar that needs to be painted.
ARect
indicates the dimensions of the toolbar on the canvas.
Leave DefaultDraw
as True if the toolbar should continue with the normal painting process. Set DefaultDraw
to False if the OnCustomDraw event handler has completely painted the toolbar.