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:
Vadim Zeitlin
2022-05-20 23:53:38 +01:00
parent dcf24f5311
commit f96789c1fd

View File

@@ -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);