RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomControlBar.PaintControlFrame Method

Paints a control band's frame.

Pascal
procedure PaintControlFrame(Canvas: TCanvas; AControl: TControl; var ARect: TRect); virtual;
C++
virtual __fastcall PaintControlFrame(TCanvas Canvas, TControl * AControl, TRect ARect);

The Paint method calls PaintControlFrame for each band to render its image. PaintControlFrame generates an OnBandPaint event, and then draws the frame and grabber for the band, depending on the values returned by the event handler. 

Canvas is the control bar's canvas. 

AControl is the control on the band to be painted. 

ARect indicates the dimensions of the band. 

 

OnPaint 

onbandpaint 

PaintControlFrame

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!