Sign in Join
FPDoc Onlineexperiment

TCustomPrintDialog class

In unit Dialogs

Implements the base class for TPrintDialog.

Declaration

pascal
TCustomPrintDialog = class(TCommonDialog)

Inheritance

  1. TCustomPrintDialog
  2. TCommonDialog
  3. TLCLComponent
  4. TComponent
  5. TPersistent
  6. TObject

Description

TCustomPrintDialog provides properties needed to configure print jobs in the TPrintDialog descendant.

Use the Options property to enable or disable use of specific properties on the dialog.

Use the Execute method to display the dialog and capture the values entered using the dialog. Use UserChoice to determine the button clicked or action taken to close the dialog.

The TPrintDialog descendant is defined in the printer4lazarus package.

Properties

CollatepublicEnables or disables page collation when multiple copies are produced.
CopiespublicNumber of Copies requested for the document.
FromPagepublicFirst page number to include in the print request.
MinPagepublicSmallest value allowed in the page number for a print range.
MaxPagepublicLargest value allowed in the page number for a print range.
OptionspublicSet of options enabled when the print dialog is executed.
PrintToFilepublicWhen True, printing is spooled to a file instead of directly to the printer.
PrintRangepublicDetermines which values are used to represent the page range.
ToPagepublicToPage - the final page number in the range for printing.

Methods

CreatepublicConstructor for the class instance.

Inherited

From TCommonDialog (25)

AttachTo Close DefaultTitle DoCanClose DoClose DoExecute DoShow Execute GetHeight GetWidth Handle HandleAllocated Height HelpContext OnCanClose OnClose OnDialogResult OnShow ResetShowCloseFlags SetHeight SetWidth Title UserChoice Width WSRegisterClass

From TLCLComponent (8)

DecLCLRefCount Destroy GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (36)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

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