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

TCanvas.PenChanging

Implements the default OnChanging event handler used for the Pen in the canvas.

Declaration

Source position: graphics.pp line 1083

protected procedure TCanvas.PenChanging(

  APen: TObject

); virtual;

Arguments

APen

  

Object for the event notification.

Description

Ensures that canvas state flags indicate both the handle and the pen handle are valid. No actions are performed in the method if either handle is not valid.

Removes the value csPenValid from the canvas state flags, and selects the saved pen handle in the class instance. The internal copy of the saved pen handle is set to 0.


Version 3.2 Generated 2024-02-25 Home