]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlwin.cpp
pywrap should be treated as a gui script
[wxWidgets.git] / src / html / htmlwin.cpp
index 26a6420d9d9d5578f4c4c15cf6ffbcff5327113b..826db3742d61ad16ba622422dbd7cde2ded99ec9 100644 (file)
     #include "wx/dcclient.h"
     #include "wx/frame.h"
     #include "wx/dcmemory.h"
+    #include "wx/timer.h"
+    #include "wx/settings.h"
 #endif
 
 #include "wx/html/htmlwin.h"
 #include "wx/html/htmlproc.h"
 #include "wx/clipbrd.h"
 #include "wx/dataobj.h"
-#include "wx/timer.h"
-#include "wx/settings.h"
 
 #include "wx/arrimpl.cpp"
 #include "wx/listimpl.cpp"
@@ -640,7 +640,7 @@ void wxHtmlWindow::CreateLayout()
 
     if (m_Style & wxHW_SCROLLBAR_NEVER)
     {
-        SetScrollbars(wxHTML_SCROLL_STEP, 1, m_Cell->GetWidth() / wxHTML_SCROLL_STEP, 0); // always off
+        SetScrollbars(1, 1, 0, 0); // always off
         GetClientSize(&ClientWidth, &ClientHeight);
         m_Cell->Layout(ClientWidth);
     }
@@ -1556,6 +1556,8 @@ void wxHtmlWindow::SetHTMLStatusText(const wxString& text)
 #if wxUSE_STATUSBAR
     if (m_RelatedStatusBar != -1)
         m_RelatedFrame->SetStatusText(text, m_RelatedStatusBar);
+#else
+    wxUnusedVar(text);
 #endif // wxUSE_STATUSBAR
 }