implement wxSpinCtrl::Reparent() to properly reparent both the spin button and the text control part [backport of r52543 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -74,6 +74,7 @@ public:
|
||||
// forward these functions to all subcontrols
|
||||
virtual bool Enable(bool enable = true);
|
||||
virtual bool Show(bool show = true);
|
||||
virtual bool Reparent(wxWindow *newParent);
|
||||
|
||||
// get the subcontrols
|
||||
wxTextCtrl *GetText() const { return m_text; }
|
||||
|
@@ -73,6 +73,8 @@ public:
|
||||
virtual bool Enable(bool enable = true);
|
||||
virtual bool Show(bool show = true);
|
||||
|
||||
virtual bool Reparent(wxWindowBase *newParent);
|
||||
|
||||
// wxSpinButton doesn't accept focus, but we do
|
||||
virtual bool AcceptsFocus() const { return wxWindow::AcceptsFocus(); }
|
||||
|
||||
|
Reference in New Issue
Block a user