PageSetupDlg

Description:

baPageSetupDlg shows the system page setup dialog.

Platforms:

Windows

Usage:

Result = baPageSetupDlg( Flags )

Arguments:

Integer.
Flags alters the behaviour of the dialog. See Notes for details.

Returns:

Integer.
Returns 1 if user selects OK, otherwise 0.

Examples:

Director:
ok = baPageSetupDlg( 1 )

Authorware:
ok := baPageSetupDlg( 1 )
 

Notes:

This function does not do any printing - it just shows the dialog box.

The return will be 1 if the user clicks the 'OK' button, or 0 if the user cancels. If the user clicks OK, then the selections the user has made in the dialog will be set as the default printer settings. You can retrieve these settings by using baPrinterInto.

The following flags are defined.
 

Disable the Printer button.

Disable the Orientation settings

Disable the Paper size selection

Hides the Network button

16 

Disable the margin settings

32 

Disable the page drawing icon

These flags can be added together, eg baPageSetupDlg( 2 + 4 ) disables the orientation and paper size options.
 

See also:

baPrinterInto
baSetPrinter