]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_scwin.cpp
Fixed some warnings
[wxWidgets.git] / src / xrc / xh_scwin.cpp
index f205a72b7b146340574be65cba4aaead303585cf..78b70ce059f34c45250bbbc0bb4cb5e2416859b4 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/frame.h"
+    #include "wx/scrolwin.h"
 #endif
 
-#include "wx/scrolwin.h"
-
 IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
 
 wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler()
@@ -56,6 +55,12 @@ wxObject *wxScrolledWindowXmlHandler::DoCreateResource()
     SetupWindow(control);
     CreateChildren(control);
 
+    if ( HasParam(wxT("scrollrate")) )
+    {
+        wxSize rate = GetSize(wxT("scrollrate"));
+        control->SetScrollRate(rate.x, rate.y);
+    }
+
     return control;
 }