Sign in Join
FPDoc Onlineexperiment

TCustomControlBar.DoBandPaint procedure

Member of TCustomControlBarprotectedIn unit ExtCtrls

Signals the OnBandPaint event handler using the specified arguments.

Declaration

pascal
procedure DoBandPaint(AControl: TControl; ACanvas: TCanvas; 
 var ARect: TRect; var AOptions: TBandPaintOptions)
 ; virtual

Arguments

AControl

Control for the band rendered in the method.

ACanvas

Canvas where the band (and the control) are drawn.

ARect

Display area for the band and control drawn in the method.

AOptions

Set of TBandPaintOption value which control the decorations and drawing style for the band.

Description

DoBandPaint is a method used to draw the specified control for a visible TCtrlBand to the Canvas for the control. It is called from the Paint method for each off the visible bands on the control.

Use the OnBandPaint event handler to perform actions needed to configure the Canvas or render the control instance.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.