Sign in Join
FPDoc Onlineexperiment

TPrinterCanvas.Changing procedure

Member of TPrinterCanvaspublicIn unit Printers

Signals the OnChanging event when the printer status is changed.

Declaration

pascal
procedure Changing; override

Description

Changing is an overridden procedure used to signal the OnChanging event handler (when assigned) for the canvas. Changing is overridden to ensure that an assigned Printer in the class instance has the value pfPrinting in its internal Flags. This is done by calling the CheckPrinting method in TPrinter, which can raise an EPrinter exception if it does not have the expected value in its Printing property.

Changing calls the inherited method to signal the OnChanging event handler prior to exiting from the method.

See also

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