added <scrollrate> parameter to wxScrolledWindow XRC handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,6 +97,7 @@ All (GUI):
|
|||||||
- Support wxGRID_AUTOSIZE in wxGrid::SetRow/ColLabelSize() (Evgeniy Tarassov).
|
- Support wxGRID_AUTOSIZE in wxGrid::SetRow/ColLabelSize() (Evgeniy Tarassov).
|
||||||
- Ensure that wxGrid::AutoSizeColumn/Row() never sets column/row size
|
- Ensure that wxGrid::AutoSizeColumn/Row() never sets column/row size
|
||||||
smaller than the minimal size.
|
smaller than the minimal size.
|
||||||
|
- Added <scrollrate> parameter to wxScrolledWindow XRC handler.
|
||||||
|
|
||||||
All (Unix):
|
All (Unix):
|
||||||
|
|
||||||
|
@@ -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