whitehat wrote:

The printer orientation (portrait or landscape) is
determined by what is being printed by my program
so there is no need to show this option with the
TPrinterSetupDialog. Is there a way to hide this
option with this dialog?

According to MSDN, new applications shouldn't be using the old Printer Setup dialog anyway, but rather the PageSetup dialog (as encapsulated in TPageSetupDialog).

That has an option in psoDisableOrientation option in its Flags property that will do what you want.

Otherwise I think you'll have to do some fancy foot work with the common dialog APIs to trap the WM_INITDIALOG messages that get passed when the SetupDialog is initialized; which is awkward because that was originally done via some special flags to the PrintDlg call.

Have a look at the PrintDlg() function and the PRINTDLG structure in the API help for more info.

In any case the option is to DISABLE the portrait/landscape RadioButtons, not HIDE them.

HTH

Stephen Posey
[EMAIL PROTECTED]


__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to