Vcl.ExtCtrls.TCustomControlBar.OnBandPaint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnBandPaint: TBandPaintEvent read FOnBandPaint write FOnBandPaint;

C++

__property TBandPaintEvent OnBandPaint = {read=FOnBandPaint, write=FOnBandPaint};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TCustomControlBar

Description

Occurs when a control band is painted.

Write an OnBandPaint event handler to customize the way the control bar draws its bands. From the event handler, you can draw to the control bar's canvas, using the dimensions of the band that are passed in as the ARect parameter. You can change the dimensions so that the automatically drawn frame and grabber appear in a different portion of the control bar (for example, indented slightly). You can suppress the automatic painting of the frame or grabber by removing options from the Options parameter.

OnBandPaint is an event handler of type Vcl.ExtCtrls.TBandPaintEvent.

See Also