From 16f26dadb502b874b6aa7b5fa914928be0c5f1af Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Mon, 5 Jul 2004 19:27:23 +0000 Subject: [PATCH] use a default position for frames and in some cases a default size as well (otherwise the menubar is partially hidden (with MSW) due to too small frame height) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/html/about/about.cpp | 2 +- samples/html/help/help.cpp | 2 +- samples/html/printing/printing.cpp | 2 +- samples/html/virtual/virtual.cpp | 2 +- samples/html/widget/widget.cpp | 2 +- samples/html/zip/zip.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/html/about/about.cpp b/samples/html/about/about.cpp index 6ace1ab1d6..91072913d2 100644 --- a/samples/html/about/about.cpp +++ b/samples/html/about/about.cpp @@ -109,7 +109,7 @@ wxImage::AddHandler(new wxPNGHandler); // Create the main application window MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"), - wxPoint(50, 50), wxSize(150, 50)); + wxDefaultPosition, wxDefaultSize); // Show it and tell the application that it's our main window // @@@ what does it do exactly, in fact? is it necessary here? diff --git a/samples/html/help/help.cpp b/samples/html/help/help.cpp index 1c998979ce..d54817fab5 100644 --- a/samples/html/help/help.cpp +++ b/samples/html/help/help.cpp @@ -116,7 +116,7 @@ // Create the main application window MyFrame *frame = new MyFrame(_("HTML Help Sample"), - wxPoint(50, 50), wxSize(150, 50)); + wxDefaultPosition, wxDefaultSize); // Show it and tell the application that it's our main window // @@@ what does it do exactly, in fact? is it necessary here? diff --git a/samples/html/printing/printing.cpp b/samples/html/printing/printing.cpp index 588e62ade4..90497c7de8 100644 --- a/samples/html/printing/printing.cpp +++ b/samples/html/printing/printing.cpp @@ -140,7 +140,7 @@ bool MyApp::OnInit() #endif MyFrame *frame = new MyFrame(_("Printing test"), - wxPoint(150, 50), wxSize(640, 480)); + wxDefaultPosition, wxSize(640, 480)); // Show it and tell the application that it's our main window // @@@ what does it do exactly, in fact? is it necessary here? diff --git a/samples/html/virtual/virtual.cpp b/samples/html/virtual/virtual.cpp index 7ac3a57d5f..75d9193dfb 100644 --- a/samples/html/virtual/virtual.cpp +++ b/samples/html/virtual/virtual.cpp @@ -162,7 +162,7 @@ wxFSFile* MyVFS::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location) { // Create the main application window MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"), - wxPoint(50, 50), wxSize(640, 480)); + wxDefaultPosition, wxSize(640, 480)); // Show it and tell the application that it's our main window // @@@ what does it do exactly, in fact? is it necessary here? diff --git a/samples/html/widget/widget.cpp b/samples/html/widget/widget.cpp index 697edfc3f3..816c029b7b 100644 --- a/samples/html/widget/widget.cpp +++ b/samples/html/widget/widget.cpp @@ -154,7 +154,7 @@ bool MyApp::OnInit() { // Create the main application window MyFrame *frame = new MyFrame( _("wxHtmlWindow testing application"), - wxPoint(50, 50), wxSize(640, 480) ); + wxDefaultPosition, wxSize(640, 480) ); // Show it and tell the application that it's our main window // @@@ what does it do exactly, in fact? is it necessary here? diff --git a/samples/html/zip/zip.cpp b/samples/html/zip/zip.cpp index 00e50693c6..f33295c215 100644 --- a/samples/html/zip/zip.cpp +++ b/samples/html/zip/zip.cpp @@ -113,7 +113,7 @@ bool MyApp::OnInit() // Create the main application window MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"), - wxPoint(50, 50), wxSize(640, 480) ); + wxDefaultPosition, wxSize(640, 480) ); // Show it and tell the application that it's our main window // @@@ what does it do exactly, in fact? is it necessary here? -- 2.45.2