]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/vscroll/vstest.cpp
Source cleaning: whitespaces, tabs, -1/wxNOT_FOUND, TRUE/true, FALSE/false.
[wxWidgets.git] / samples / vscroll / vstest.cpp
index eb44a21680af0b24e7f9c617bd7db9a9bc08e053..4fcf2c0b3d1c77832126e13ae70920884f8e57e1 100644 (file)
@@ -89,7 +89,7 @@ private:
 class VScrollWindow : public wxVScrolledWindow
 {
 public:
 class VScrollWindow : public wxVScrolledWindow
 {
 public:
-    VScrollWindow(wxFrame *frame) : wxVScrolledWindow(frame, -1)
+    VScrollWindow(wxFrame *frame) : wxVScrolledWindow(frame, wxID_ANY)
     {
         m_frame = frame;
 
     {
         m_frame = frame;
 
@@ -100,6 +100,7 @@ public:
 
     void OnIdle(wxIdleEvent&)
     {
 
     void OnIdle(wxIdleEvent&)
     {
+#if wxUSE_STATUSBAR
         m_frame->SetStatusText(wxString::Format
                                (
                                     _T("Page size = %d, pos = %d, max = %d"),
         m_frame->SetStatusText(wxString::Format
                                (
                                     _T("Page size = %d, pos = %d, max = %d"),
@@ -107,6 +108,7 @@ public:
                                     GetScrollPos(wxVERTICAL),
                                     GetScrollRange(wxVERTICAL)
                                ));
                                     GetScrollPos(wxVERTICAL),
                                     GetScrollRange(wxVERTICAL)
                                ));
+#endif // wxUSE_STATUSBAR
         m_changed = false;
     }
 
         m_changed = false;
     }
 
@@ -216,10 +218,10 @@ bool VScrollApp::OnInit()
 
     // and show it (the frames, unlike simple controls, are not shown when
     // created initially)
 
     // and show it (the frames, unlike simple controls, are not shown when
     // created initially)
-    frame->Show(TRUE);
+    frame->Show(true);
 
     // ok
 
     // ok
-    return TRUE;
+    return true;
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------
@@ -229,7 +231,7 @@ bool VScrollApp::OnInit()
 // frame constructor
 VScrollFrame::VScrollFrame()
             : wxFrame(NULL,
 // frame constructor
 VScrollFrame::VScrollFrame()
             : wxFrame(NULL,
-                      -1,
+                      wxID_ANY,
                       _T("VScroll wxWidgets Sample"),
                       wxDefaultPosition,
                       wxSize(400, 350))
                       _T("VScroll wxWidgets Sample"),
                       wxDefaultPosition,
                       wxSize(400, 350))
@@ -272,8 +274,8 @@ VScrollFrame::VScrollFrame()
 
 void VScrollFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
 {
 
 void VScrollFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
 {
-    // TRUE is to force the frame to close
-    Close(TRUE);
+    // true is to force the frame to close
+    Close(true);
 }
 
 void VScrollFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 }
 
 void VScrollFrame::OnAbout(wxCommandEvent& WXUNUSED(event))