RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomControlBar.OnBandPaint Event

Occurs when a control band is painted.

Pascal
property OnBandPaint: TBandPaintEvent;
C++
__property TBandPaintEvent OnBandPaint;

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. 

 

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