Le 23 juil. 06 à 11:30 Matin, jis a écrit:
On Jul 22, 2006, at 4:23 PM, Arnaud Nicolet wrote:
When I send pages to a printer, I need to know if the user hits
"cancel" (the one, on MacOS X, which appears in the "Printing..."
window, when the data are transmitted to the printer).
Here's my test code:
Sub Test
dim g As Graphics
g=OpenPrinterDialog()
if g=nil then return
g.drawLine 0,0,g.width,g.height
end sub
Put this somewhere inside your printing loop:
if UserCancelled then
exit
end if
Thanks. The problem is that the dialog I'm speaking about is shown
after all the drawing is done, when all is being sent (I think this
dialog is only on MacOS X)_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>