X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c067fe3c1e752658c63b4d556eb6a5468213860..fad92e2f367f5c37ba4d80c9b57a4453e86c6ac2:/src/xrc/xh_scwin.cpp?ds=sidebyside diff --git a/src/xrc/xh_scwin.cpp b/src/xrc/xh_scwin.cpp index 59988f7844..78b70ce059 100644 --- a/src/xrc/xh_scwin.cpp +++ b/src/xrc/xh_scwin.cpp @@ -18,8 +18,11 @@ #if wxUSE_XRC #include "wx/xrc/xh_scwin.h" -#include "wx/scrolwin.h" -#include "wx/frame.h" + +#ifndef WX_PRECOMP + #include "wx/frame.h" + #include "wx/scrolwin.h" +#endif IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler) @@ -52,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; }