]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/gauge.cpp
more order in wxCRT_filefunctions: define A and W versions, just as for everything...
[wxWidgets.git] / samples / widgets / gauge.cpp
index 3584330e8216c7cd1699b0f599971685054e0ddb..a60f55312ce5ba2f666d771af28f82dd6c7b11e9 100644 (file)
@@ -211,8 +211,7 @@ void GaugeWidgetsPage::CreateContent()
     sizerLeft->Add(btn, 0, wxALIGN_CENTRE_HORIZONTAL | wxALL, 15);
 
     // middle pane
-    wxStaticBox *box2 = new wxStaticBox(this, wxID_ANY,
-        _T("&Change gauge value"));
+    wxStaticBox *box2 = new wxStaticBox(this, wxID_ANY, _T("&Change gauge value"));
     wxSizer *sizerMiddle = new wxStaticBoxSizer(box2, wxVERTICAL);
 
     wxTextCtrl *text;
@@ -239,7 +238,8 @@ void GaugeWidgetsPage::CreateContent()
     btn = new wxButton(this, GaugePage_Progress, _T("Simulate &progress"));
     sizerMiddle->Add(btn, 0, wxALL | wxGROW, 5);
 
-    btn = new wxButton(this, GaugePage_IndeterminateProgress, _T("Simulate undeterminate job"));
+    btn = new wxButton(this, GaugePage_IndeterminateProgress,
+                       _T("Simulate &indeterminate job"));
     sizerMiddle->Add(btn, 0, wxALL | wxGROW, 5);
 
     btn = new wxButton(this, GaugePage_Clear, _T("&Clear"));
@@ -261,8 +261,6 @@ void GaugeWidgetsPage::CreateContent()
     Reset();
 
     SetSizer(sizerTop);
-
-    sizerTop->Fit(this);
 }
 
 GaugeWidgetsPage::~GaugeWidgetsPage()
@@ -347,7 +345,7 @@ void GaugeWidgetsPage::StopTimer(wxButton *clicked)
     }
     else
     {
-        clicked->SetLabel(_T("Simulate undeterminate job"));
+        clicked->SetLabel(_T("Simulate indeterminate job"));
         FindWindow(GaugePage_Progress)->Enable();
     }