Don't hardcode wxPreviewFrame size in the documentation
This is a bad idea and it's better to let the frame determine its own best size.
This commit is contained in:
@@ -55,9 +55,7 @@ case WXPRINT_PREVIEW:
|
||||
// Pass two printout objects: for preview, and possible printing.
|
||||
wxPrintPreview *preview = new wxPrintPreview(new MyPrintout, new MyPrintout);
|
||||
wxPreviewFrame *frame = new wxPreviewFrame(preview, this,
|
||||
"Demo Print Preview",
|
||||
wxPoint(100, 100),
|
||||
wxSize(600, 650));
|
||||
"Demo Print Preview");
|
||||
frame->Centre(wxBOTH);
|
||||
frame->Initialize();
|
||||
frame->Show(true);
|
||||
|
||||
Reference in New Issue
Block a user