Hi,
I'm using some code to print a listbox:
dim g As graphics
dim i As integer
dim j As integer
g=OpenPrinterDialog()
if g=nil then Return True
i=GetColumnsWidth 'A method that computes the width of the listbox.
It works fine.
if i>g.Width then
if i<=g.Height and app.MyPrefs.PrintTryLandscape then
m=new MessageDialog
m.Message="The list is too large to be printed in that format.
Would you like to print it as landscape format?"
m.ActionButton.Caption="Landscape"
m.CancelButton.Caption="Cancel"
m.CancelButton.Visible=True
b=m.ShowModal
Now, what should I do if the user hits "Cancel"? Actually, a blank
page will be printed anyhow as soon as "g" goes out of scope, unless
I kill my app (apparently).
Also, when the dialog "Processing page: x" is shown, the user can
cancels the print using the "Cancel" button. How do I detect that
from my RB app?
P.S. Using RB 5.5, if it matters.
Thanks in advance.
_______________________________________________
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>