Vcl.ComCtrls.TTBAdvancedCustomDrawEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

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

Properties

Type Visibility Source Unit Parent
typedef public Vcl.ComCtrls.hpp Vcl.ComCtrls Vcl.ComCtrls

Description

TTBAdvancedCustomDrawEvent is the type of a list view's TToolBar.OnAdvancedCustomDraw event handler.

Sender is the toolbar that needs to be painted.

ARect indicates the dimensions of the toolbar on the canvas.

Stage indicates the current stage of the drawing process.

Leave DefaultDraw as True if the toolbar should continue with the normal painting process. Set DefaultDraw to False if the OnAdvancedCustomDraw event handler has completely painted the toolbar. DefaultDraw is only meaningful when Stage is cdPrePaint.

See Also