From c3aee5c154ce130ab9858453c9ae28f944565695 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 31 Dec 2004 13:29:35 +0000 Subject: [PATCH 1/1] SetFocus fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/spinctrl.h | 1 + src/mac/carbon/spinctrl.cpp | 7 +++++++ 2 files changed, 8 insertions(+) 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 // ---------------------------------------------------------------------------- -- 2.45.2