Given that:
- the wxPrintPreview constructor takes three arguments:
wxPrintPreview(wxPrintout* printout, wxPrintout* printoutForPrinting,
wxPrintData* data=NULL),
- the wxPrintout constructor takes only a title as argument
wxPrintout(const wxString& title = "Printout"), and
- the wxPrintData default constructor takes no arguments,
how can I pass information about page margins to the wxPrintPreview so
it can display margins?
You can also create the wx.PrintPreview with a wx.PrintDialogData as the 3rd arg, although that also does not carry the margin info... I think the last time I did it I saved the margin info after the page setup dialog was done, and then I passed that to my Printout class and used it in my OnPrintPage method.
···
On 9/14/10 12:14 PM, Frank Niessink wrote:
[Sorry for cross-posting]
Given that:
- the wxPrintPreview constructor takes three arguments:
wxPrintPreview(wxPrintout* printout, wxPrintout* printoutForPrinting,
wxPrintData* data=NULL),
- the wxPrintout constructor takes only a title as argument
wxPrintout(const wxString& title = "Printout"), and
- the wxPrintData default constructor takes no arguments,
how can I pass information about page margins to the wxPrintPreview so
it can display margins?