From: Stefan Csomor Date: Fri, 31 Dec 2004 13:29:35 +0000 (+0000) Subject: SetFocus fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c3aee5c154ce130ab9858453c9ae28f944565695?ds=sidebyside;hp=90b78a567f3271fede518e42de3f90eef10a3fdb SetFocus fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/mac/carbon/spinctrl.h b/include/wx/mac/carbon/spinctrl.h index 9ffd5d1ee2..e29c806d72 100755 --- a/include/wx/mac/carbon/spinctrl.h +++ b/include/wx/mac/carbon/spinctrl.h @@ -80,6 +80,7 @@ public: // forward these functions to all subcontrols virtual bool Enable(bool enable = TRUE); virtual bool Show(bool show = TRUE); + virtual void SetFocus(); // get the subcontrols wxTextCtrl *GetText() const { return m_text; } diff --git a/src/mac/carbon/spinctrl.cpp b/src/mac/carbon/spinctrl.cpp index 6e68e34316..e1c2f58cbe 100644 --- a/src/mac/carbon/spinctrl.cpp +++ b/src/mac/carbon/spinctrl.cpp @@ -267,6 +267,13 @@ bool wxSpinCtrl::Show(bool show) return TRUE; } +void wxSpinCtrl::SetFocus() +{ + if ( m_text != NULL) { + m_text->SetFocus(); + } +} + // ---------------------------------------------------------------------------- // value and range access // ----------------------------------------------------------------------------