implement wxSpinCtrl::Reparent() to properly reparent both the spin button and the text control part (slightly modified patch 1914190)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -265,6 +265,17 @@ bool wxSpinCtrl::Show(bool show)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxSpinCtrl::Reparent(wxWindow *newParent)
|
||||
{
|
||||
if ( m_btn )
|
||||
{
|
||||
m_btn->Reparent(newParent);
|
||||
m_text->Reparent(newParent);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// value and range access
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user