Fixed problem with tab traversal in wxSpinCtrl (added SetFocus())

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guillermo Rodriguez Garcia 2000-01-07 18:22:38 +00:00
parent d6707afb72
commit 8bf3196d66
2 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,7 @@ public:
protected:
virtual void DoMoveWindow(int x, int y, int width, int height);
virtual wxSize DoGetBestSize() const;
virtual void SetFocus();
// the handler for wxSpinButton events
void OnSpinChange(wxSpinEvent& event);

View File

@ -232,6 +232,11 @@ bool wxSpinCtrl::Enable(bool enable)
return TRUE;
}
void wxSpinCtrl::SetFocus()
{
::SetFocus((HWND)m_hwndBuddy);
}
// ----------------------------------------------------------------------------
// event processing
// ----------------------------------------------------------------------------