RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomControlBar.DoBandPaint Method

Generates an OnBandPaint event.

Pascal
procedure DoBandPaint(Control: TControl; Canvas: TCanvas; var ARect: TRect; var Options: TBandPaintOptions); virtual;
C++
virtual __fastcall DoBandPaint(TControl * Control, TCanvas Canvas, TRect ARect, TBandPaintOptions Options);

Do not call DoBandPaint. It is called automatically for each band when the control bar is painted. Override DoBandPaint to provide class-specific paint code for the bands or to suppress the OnBandPaint event. 

Control is the control (usually a tool bar) whose band is about to be painted. 

Canvas is the control bar's canvas. This is the canvas to use for drawing the band. 

ARect is the dimensions of the band on the canvas. The OnBandPaint event handler can change this value to alter where the frame and grabber are drawn. 

Options specifies which parts of the band should be drawn after DoBandPaint exits. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!