added <scrollrate> parameter to wxScrolledWindow XRC handler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2007-12-04 19:03:50 +00:00
parent b2beaece19
commit b86c4f960e
3 changed files with 9 additions and 1 deletions

View File

@ -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 <scrollrate> parameter to wxScrolledWindow XRC handler.
wxGTK:

View File

@ -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.

View File

@ -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;
}