SIMPOL Documentation

wxprintdialog()

Description

Displays a dialog (normally an OS common dialog) to allow the setting up of the printer. This can optionally have printer settings passed in as the existing configuration. If the user exits via the OK button, the printer settings will be returned in the dialogdata parameter, which must be a pre-initialized string object.

Prototype

wxprintdialog ( type(wxdialogparent) parent, string dialogdata, string result )

Parameters

ParameterDefault valueType nameDescription
parent.nultype(wxdialogparent) Gives the parent of the common dialog, if any.
dialogdata.nulstring This will contain the printer settings when the function returns if the user closed the dialog with OK. It can also be used to preset the printer dialog settings before they are shown. It must be an existing (pre-initialized) object.
result.nulstring The result (either "ok" or "cancel") will be returned in the string object passed as this parameter. It must be an existing (pre-initialized) object.