wxPageSetupDialogData

wxPageSetupDialogData

wxPageSetupDialogData
Functions for wxPageSetupDialogData class

This class holds a variety of information related to wxPageSetupDialog.

It contains a wxPrintData member which is used to hold basic printer configuration data (as opposed to the user-interface configuration settings stored by wxPageSetupDialogData).

See: Overview printing, wxPageSetupDialog

wxWidgets docs: wxPageSetupDialogData

Types

Flag = boolean()

Enables or disables the "Printer" button, which invokes a printer setup dialog.

Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).

Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).

Returns the left (x) and top (y) minimum margins the user can enter (Windows only).

Units are in millimetres.

Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).

Units are in millimetres.

Returns true if the print data associated with the dialog data is valid.

This can return false on Windows if the current printer is not set, for example. On all other platforms, it returns true.

Types

Flag = boolean()

Pass true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).

Types

Flag = boolean()

Pass true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).

Units are in millimetres.

Types

Pt = {X :: integer(), Y :: integer()}

Sets the left (x) and top (y) minimum margins the user can enter (Windows only).

Units are in millimetres.

Types

Pt = {X :: integer(), Y :: integer()}

Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).

Units are in millimetres.

Types

Size = {W :: integer(), H :: integer()}

Sets the paper size in millimetres.

If a corresponding paper id is found, it will be set in the internal wxPrintData object, otherwise the paper size overrides the paper id.