Center the print preview frame after fully creating it
Center the frame correctly in the sample and demonstrate the right way to do it in the documentation.
This commit is contained in:
@@ -56,8 +56,8 @@ case WXPRINT_PREVIEW:
|
||||
wxPrintPreview *preview = new wxPrintPreview(new MyPrintout, new MyPrintout);
|
||||
wxPreviewFrame *frame = new wxPreviewFrame(preview, this,
|
||||
"Demo Print Preview");
|
||||
frame->Centre(wxBOTH);
|
||||
frame->Initialize();
|
||||
frame->Centre(wxBOTH);
|
||||
frame->Show(true);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user