Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > Re: XPRINT ATTA...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 232 of 275
Post > Topic >>

Re: XPRINT ATTACH CHOOSE

by "Michael Mattias" <mmattias@[EMAIL PROTECTED] > Apr 11, 2007 at 12:58 PM

"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
 




 3 Posts in Topic:
XPRINT ATTACH CHOOSE
Wolfgang Enzinger <spa  2007-04-11 11:46:44 
Re: XPRINT ATTACH CHOOSE
"Michael Mattias&quo  2007-04-11 12:58:42 
Re: XPRINT ATTACH CHOOSE
Wolfgang Enzinger <spa  2007-04-11 14:43:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 22:52:26 CDT 2008.