Vcl.StdActns.TPrintDlg.Dialog
Delphi
property Dialog: TPrintDialog read GetDialog;
C++
__property Vcl::Dialogs::TPrintDialog* Dialog = {read=GetDialog};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.StdActns.pas Vcl.StdActns.hpp |
Vcl.StdActns | TPrintDlg |
Description
Provides access to the print dialog that the action executes.
When using a print dialog action, you do not place a TPrintDialog component on the form or data module at design time. Instead, you add the TPrintDlg action to your action list. If you want to configure the dialog, for example to set the Options that are available to users, you can access the dialog component using the Dialog property. From an OnAccept event handler, use Dialog to read the choices that the user made in the print dialog and then perform the printing based on those choices.
The print dialog component is created by the TPrintDlg constructor.