]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed problem with tab traversal in wxSpinCtrl (added SetFocus())
authorGuillermo Rodriguez Garcia <guille@iies.es>
Fri, 7 Jan 2000 18:22:38 +0000 (18:22 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Fri, 7 Jan 2000 18:22:38 +0000 (18:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/spinctrl.h
src/msw/spinctrl.cpp

index 37f8e1c2e4edba5d8792e1983891fc009bba8556..4a5d3d56aa07e7c1929eeb4ac980b804a6f01476 100644 (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);
index 3946d365a9398f6ec0b57a39225a15a5b76e8ae5..16672d01988996228f4fc947480f4601cf8cca27 100644 (file)
@@ -232,6 +232,11 @@ bool wxSpinCtrl::Enable(bool enable)
     return TRUE;
 }
 
+void wxSpinCtrl::SetFocus()
+{
+    ::SetFocus((HWND)m_hwndBuddy);
+}
+
 // ----------------------------------------------------------------------------
 // event processing
 // ----------------------------------------------------------------------------