[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ExtCtrls' (#lcl)

TBandPaintEvent

Specifies an event handler used to perform actions needed when a band in TCustomControlBar is painted.

Declaration

Source position: extctrls.pp line 1469

type TBandPaintEvent = procedure(

  Sender: TObject;

  Control: TControl;

  ACanvas: TCanvas;

  var ARect: TRect;

  var Options: TBandPaintOptions

) of object;

Arguments

Sender

  

Object for the notification.

Control

  

Control which owns the control band for the notification.

ACanvas

  

Canvas for the control bar where the handler draws the control band.

ARect

  

Dimensions for the control bar band.

Options

  

Paint options for the control bar.

Description

TBandPaintEvent specifies an object procedure used to perform actions needed when a band in TCustomControlBar control is painted. TBandPaintEvent is the type used to implement the OnBandPaint event handler in TCustomControlBar.

Arguments passed to the procedure identify the TCustomControlBar drawn in the band, and the Canvas and drawing rectangle used in the drawing operation. Options define the drawing features enabled for the band.

See also

TCustomControlBar

  

Implements a panel used to maintain and manage tool bars and tool buttons on a form.

TCustomControlBar.Paint

  

Draws the control with its image, decorations, and visible bands.

TCustomControlBar.OnBandPaint

  

Event handler signalled to render a visible band on the specified control with the specified paint options.

TCustomControlBar.DoBandPaint

  

Signals the OnBandPaint event handler using the specified arguments.


Version 3.2 Generated 2024-02-25 Home