[Overview][Types][Classes][Variables][Index] Reference for unit 'Printers' (#lcl)

TPrinter.PrinterSelected

Performs actions needed when a new printer has been selected.

Declaration

Source position: printers.pas line 303

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

Remark: 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

TPrinter.SetPrinter

  

Makes the device with the specified name the current printer.

TPrinter.PrinterIndex

  

Contains the ordinal position in Printers for the selected print device.

TPrinter.Printers

  

Contains the names for devices that can be selected for printing.


Version 4.0 Generated 2025-05-03 Home