]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_scwin.cpp
Check for GTK window parent, not wx one, when reparenting.
[wxWidgets.git] / src / xrc / xh_scwin.cpp
index 156a3c970be6f1eb72513cf010d061e84535f6d5..78b70ce059f34c45250bbbc0bb4cb5e2416859b4 100644 (file)
@@ -55,6 +55,12 @@ wxObject *wxScrolledWindowXmlHandler::DoCreateResource()
     SetupWindow(control);
     CreateChildren(control);
 
     SetupWindow(control);
     CreateChildren(control);
 
+    if ( HasParam(wxT("scrollrate")) )
+    {
+        wxSize rate = GetSize(wxT("scrollrate"));
+        control->SetScrollRate(rate.x, rate.y);
+    }
+
     return control;
 }
 
     return control;
 }