API:Vcl.ExtCtrls.TControlBar.OnBandPaint
Delphi
property OnBandPaint: TBandPaintEvent read FOnBandPaint write FOnBandPaint;
C++
__property OnBandPaint;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | TControlBar |
Description
Occurs when a control band is painted.
Vcl.ExtCtrls.TControlBar.OnBandPaint inherits from Vcl.ExtCtrls.TCustomControlBar.OnBandPaint. All content below this line refers to Vcl.ExtCtrls.TCustomControlBar.OnBandPaint.
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.