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:
@@ -238,7 +238,8 @@ All (GUI):
|
|||||||
behaviour of GetNextSibling() consistent between wxMSW and generic versions.
|
behaviour of GetNextSibling() consistent between wxMSW and generic versions.
|
||||||
- Merged wxRichTextAttr and wxTextAttrEx into wxTextAttr, and added a font table
|
- Merged wxRichTextAttr and wxTextAttrEx into wxTextAttr, and added a font table
|
||||||
to wxRichTextBuffer to reduce wxFont consumption and increase performance.
|
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:
|
wxGTK:
|
||||||
|
|
||||||
|
@@ -432,6 +432,7 @@ wxScrolledWindow
|
|||||||
pos Position -1,-1
|
pos Position -1,-1
|
||||||
size Size -1,-1
|
size Size -1,-1
|
||||||
style Style[wxScrolledWindow] wxHSCROLL | wxVSCROLL
|
style Style[wxScrolledWindow] wxHSCROLL | wxVSCROLL
|
||||||
|
scrollrate Size 0,0
|
||||||
|
|
||||||
wxScolledWindow may have children objects.
|
wxScolledWindow may have children objects.
|
||||||
|
|
||||||
|
@@ -55,6 +55,12 @@ wxObject *wxScrolledWindowXmlHandler::DoCreateResource()
|
|||||||
SetupWindow(control);
|
SetupWindow(control);
|
||||||
CreateChildren(control);
|
CreateChildren(control);
|
||||||
|
|
||||||
|
if ( HasParam(wxT("scrollrate")) )
|
||||||
|
{
|
||||||
|
wxSize rate = GetSize(wxT("scrollrate"));
|
||||||
|
control->SetScrollRate(rate.x, rate.y);
|
||||||
|
}
|
||||||
|
|
||||||
return control;
|
return control;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user