"Wolfgang Enzinger" <spamsink-8514@[EMAIL PROTECTED]
> wrote in message
news:t5ip131dhp5jduhadcmoj1b17cos26l8nu@[EMAIL PROTECTED]
>
> I'm having two problems with the statement "XPRINT ATTACH CHOOSE":
>
> 1. Each time the printer dialog pops up, the default printer is
> preselected. Is there a way to preselect a different one?
....
> 2. ....the printer dialog generated by X. A. CHOOSE
> isn't modal to the calling form,
The simple answer is, if you are using the XPRINT statement, you are
limited
to the options offered by that statement.
For XPRINT ATTACH CHOOSE with a named printer as the default, I posted
code
to do this at
http://www.powerbasic.com/sup****t/forums/Forum7/HTML/002446.html
Or, you could tem****arily set the system default printer to the desired
printer, use XPRINT ATTACH CHOOSE, then set the default back. You can use
SetDefaultPrinter (Windows 2000+ ) to do so; see your WinAPI reference for
details.
As far as making the dialog 'truly' modal, I "believe" the common dialog
on which I based th above code is such. If not, you could simulate
'modality' by disabling your program's main window before calling either
XPRINT ATTACH CHOOSE or the code referenced above.
--
Michael C. Mattias
Tal Systems Inc.
Racine WI
mmattias@[EMAIL PROTECTED]
>
> --
> Viele Grüsse,
> Wolfgang
> http://www.enzinger.net


|