]> git.saurik.com Git - wxWidgets.git/commitdiff
Test SetSizeHints() for wxFrame (does nothing
authorRobert Roebling <robert@roebling.de>
Sun, 29 Oct 2006 14:25:54 +0000 (14:25 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 29 Oct 2006 14:25:54 +0000 (14:25 +0000)
    under wxMSW).

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

samples/minifram/minifram.cpp

index 96d41ad7e333e19523e63ba3dd65c203009e2738..1066f8eeb584e2e108a24468de3d2086ba8699bc 100644 (file)
@@ -55,6 +55,11 @@ bool MyApp::OnInit()
   // Create the main frame window
   main_frame = new MyMainFrame((wxFrame *) NULL, wxID_ANY, _T("wxFrame sample"),
      wxPoint(100, 100), wxSize(300, 200));
+     
+  // main_frame->SetMinSize( wxSize(100,100) );
+  // main_frame->SetMaxSize( wxSize(400,400) );
+  // same as
+  main_frame->SetSizeHints( 100,100, 400,400 );
 
   main_frame->CreateToolBar(wxNO_BORDER|wxTB_VERTICAL, ID_TOOLBAR);
   InitToolbar(main_frame->GetToolBar());