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

TCanvas.BrushChanging

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

Declaration

Source position: graphics.pp line 1085

protected procedure TCanvas.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

TCanvas.Brush

  

The Brush used to paint on the Canvas.

TCanvas.Create

  

Constructor for the class instance.

TCanvas.OnChange

  

Event handler signalled after a change to the canvas.

TBrush

  

The Brush to be used to Paint on the current Canvas.


Version 3.2 Generated 2024-02-25 Home