Sign in Join
FPDoc Onlineexperiment

TCanvas.BrushChanging procedure

Member of TCanvasprotectedIn unit Graphics

Implements the OnChanging event handler for the Brush on the canvas.

Declaration

pascal
procedure BrushChanging(ABrush: TObject); virtual

Arguments

ABrush

Not used in the current implementation of the method.

Description

BrushChanging is assigned as the OnChanging event handler for the Brush property in the constructor for the class instance. It allows the canvas class to be notified and updated when a new brush is assigned to the canvas.

BrushChanging ensures that both the Handle and the Brush for the canvas are valid. No actions are performed in the method if State does not contain the values csBrushValid and csHandleValid. It removes csBrushValid from the States property and reselects the handle for the Brush in the control.

See also

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