]> git.saurik.com Git - wxWidgets.git/commitdiff
Improved prop sheet dialog layout
authorJulian Smart <julian@anthemion.co.uk>
Sun, 17 Apr 2005 07:50:25 +0000 (07:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 17 Apr 2005 07:50:25 +0000 (07:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialogs/dialogs.cpp

index 5a1f34d91b6a9aab143684b0fdb4ee96a97d1085..bdca3c2f0fd272f474cb41b4380296f92af48d1f 100644 (file)
@@ -1367,7 +1367,7 @@ END_EVENT_TABLE()
 
 SettingsDialog::SettingsDialog(wxWindow* win)
 {
 
 SettingsDialog::SettingsDialog(wxWindow* win)
 {
-    SetExtraStyle(wxDIALOG_EX_CONTEXTHELP);
+    SetExtraStyle(wxDIALOG_EX_CONTEXTHELP|wxWS_EX_VALIDATE_RECURSIVELY);
 
     Create(win, -1, _("Preferences"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER);
     CreateButtons(wxOK|wxCANCEL|wxHELP);
 
     Create(win, -1, _("Preferences"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER);
     CreateButtons(wxOK|wxCANCEL|wxHELP);
@@ -1483,6 +1483,7 @@ wxPanel* SettingsDialog::CreateAestheticSettingsPage(wxWindow* parent)
 #endif
 
     topSizer->Add( item0, 1, wxGROW|wxALIGN_CENTRE|wxALL, 5 );
 #endif
 
     topSizer->Add( item0, 1, wxGROW|wxALIGN_CENTRE|wxALL, 5 );
+    topSizer->AddSpacer(5);
 
     panel->SetSizer(topSizer);
     topSizer->Fit(panel);
 
     panel->SetSizer(topSizer);
     topSizer->Fit(panel);