Sign in Join
FPDoc Onlineexperiment

TPrinter.RawModeChanging procedure

Member of TPrinterprotectedIn unit Printers

Performs actions needed when a new value is assigned to RawMode.

Declaration

pascal
procedure RawModeChanging; virtual

Description

RawModeChanging is a virtual procedure used to perform actions needed when a new value is assigned for the RawMode property. RawModeChanging is called from the SetRawMode method, and occurs after checking the value in Printing and before changing values in PrinterFlags. It is useful when switching from RawMode (which does not require a printer Canvas) to using a page description language like Postscript (which requires a specialized printer Canvas).

In TPrinter, RawModeChanging has an empty implementation. It must be overridden in a desecendent class to perform actions needed for the operating system / widgetset / printer-related technology used in the implementation.

See also

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