Fix focus behaviour of the spin control under MSW
Override MSWGetFocusHwnd for wxSpinCtrl to focus the right subwindow. So the correct window will be used in wxWindowMSW::SetFocusFromKbd and the spin controls content will be selected on TAB key.
This commit is contained in:
@@ -77,7 +77,6 @@ public:
|
||||
virtual int GetValue() const wxOVERRIDE;
|
||||
virtual void SetRange(int minVal, int maxVal) wxOVERRIDE;
|
||||
virtual bool SetFont(const wxFont &font) wxOVERRIDE;
|
||||
virtual void SetFocus() wxOVERRIDE;
|
||||
|
||||
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
||||
virtual bool Show(bool show = true) wxOVERRIDE;
|
||||
@@ -115,6 +114,8 @@ public:
|
||||
|
||||
virtual void SetLayoutDirection(wxLayoutDirection dir) wxOVERRIDE;
|
||||
|
||||
virtual WXHWND MSWGetFocusHWND() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void DoGetPosition(int *x, int *y) const wxOVERRIDE;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE;
|
||||
|
Reference in New Issue
Block a user