]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/vscroll/vstest.cpp
use wxDC::GetMultiLineTextExtent() instead of duplicating its code in wxButton::DoGet...
[wxWidgets.git] / samples / vscroll / vstest.cpp
index 515b8183bc458b2864a79e9bf225bd28291d8aa4..c1e18c824844e064f1e717b679ffe97c0143cc7a 100644 (file)
@@ -100,6 +100,7 @@ public:
 
     void OnIdle(wxIdleEvent&)
     {
+#if wxUSE_STATUSBAR
         m_frame->SetStatusText(wxString::Format
                                (
                                     _T("Page size = %d, pos = %d, max = %d"),
@@ -107,6 +108,7 @@ public:
                                     GetScrollPos(wxVERTICAL),
                                     GetScrollRange(wxVERTICAL)
                                ));
+#endif // wxUSE_STATUSBAR
         m_changed = false;
     }
 
@@ -280,7 +282,7 @@ void VScrollFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 {
     wxMessageBox(_T("VScroll shows how to implement scrolling with\n")
                  _T("variable line heights.\n")
-                 _T("© 2003 Vadim Zeitlin"),
+                 _T("(c) 2003 Vadim Zeitlin"),
                  _T("About VScroll"),
                  wxOK | wxICON_INFORMATION,
                  this);