From: Václav Slavík Date: Tue, 4 Dec 2007 19:03:50 +0000 (+0000) Subject: added parameter to wxScrolledWindow XRC handler X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b86c4f960e2905201b1d3a745c0736289b1caec5 added parameter to wxScrolledWindow XRC handler git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/changes.txt b/docs/changes.txt index a5756ae3f3..83dc10cde4 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -238,7 +238,8 @@ All (GUI): behaviour of GetNextSibling() consistent between wxMSW and generic versions. - Merged wxRichTextAttr and wxTextAttrEx into wxTextAttr, and added a font table to wxRichTextBuffer to reduce wxFont consumption and increase performance. -- Optimize wxGenericTreeCtrl::Collapse/ExpandAllChildren() (Szczepan Holyszewski) +- Optimize wxGenericTreeCtrl::Collapse/ExpandAllChildren(). (Szczepan Holyszewski) +- Added parameter to wxScrolledWindow XRC handler. wxGTK: diff --git a/docs/tech/tn0014.txt b/docs/tech/tn0014.txt index c09c907939..6d5d2e5f5d 100644 --- a/docs/tech/tn0014.txt +++ b/docs/tech/tn0014.txt @@ -432,6 +432,7 @@ wxScrolledWindow pos Position -1,-1 size Size -1,-1 style Style[wxScrolledWindow] wxHSCROLL | wxVSCROLL +scrollrate Size 0,0 wxScolledWindow may have children objects. diff --git a/src/xrc/xh_scwin.cpp b/src/xrc/xh_scwin.cpp index 156a3c970b..78b70ce059 100644 --- a/src/xrc/xh_scwin.cpp +++ b/src/xrc/xh_scwin.cpp @@ -55,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; }