]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't hard code position of the drawing sample window and increase its size.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 2 Jun 2010 11:58:21 +0000 (11:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 2 Jun 2010 11:58:21 +0000 (11:58 +0000)
Hardcoding position to 50,50 is inconvenient, let the window manager position
the window as configured by user. Also, the vertical size of the sample was
too small to see the contents of most pages, increase it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/drawing/drawing.cpp

index 2e2084b62b952890f07a9e4a9b88414f9a348fc6..36ecfb44895da518006da7235300dc9751a61648 100644 (file)
@@ -345,7 +345,7 @@ bool MyApp::OnInit()
 
     // Create the main application window
     MyFrame *frame = new MyFrame(wxT("Drawing sample"),
-                                 wxPoint(50, 50), wxSize(550, 340));
+                                 wxDefaultPosition, wxSize(550, 840));
 
     // Show it and tell the application that it's our main window
     frame->Show(true);