Sign in Join
FPDoc Onlineexperiment

TPrinter.DoGetCopies function

Member of TPrinterprotectedIn unit Printers

Performs actions needed to get the number of copies currently set for the print device.

Declaration

pascal
function DoGetCopies: Integer; virtual

Function result

Number of copies currently in use.

Description

DoGetCopies is a virtual Integer function used to perform actions needed to get the number of copies currently set for the print device. DoGetCopies is called when the value for the Copies property is read.

In TPrinter, DoGetCopies always returns the value 1. It must be overridden in a descendent class to perform actions needed for the operating system / widgetset / printer-related technology used to implement the printer capability.

See also

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