Sign in Join
FPDoc Onlineexperiment

TPrinter.PrinterSelected procedure

Member of TPrinterprotectedIn unit Printers

Performs actions needed when a new printer has been selected.

Declaration

pascal
procedure PrinterSelected; virtual

Description

PrinterSelected is a virtual procedure used to perform actions needed when a new printer has been selected in the class instance. PrinterSelected is called from the SetPrinter method to signal that a printer has been successfully selected from the list of Printers, and that the value in PrinterIndex has been updated.

In TPrinter, PrinterSelected has an empty implementation. It must be overridden in a descendent 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.