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:
parent
b2beaece19
commit
b86c4f960e
@ -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:
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user