Vcl.ComCtrls.TTBCustomDrawEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TTBCustomDrawEvent)(TToolBar* Sender, const System::Types::TRect &ARect, bool &DefaultDraw);

Properties

Type Visibility Source Unit Parent
typedef public 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.

See Also