Fix setting layout direction for wxSpinCtrl in wxMSW.
Position the spin control components (the button and the text) correctly for the current layout. Also update the layout of the text explicitly. See #11583. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -111,6 +111,8 @@ public:
|
||||
// recognize buddy window as part of this control at wx level
|
||||
virtual bool ContainsHWND(WXHWND hWnd) const { return hWnd == m_hwndBuddy; }
|
||||
|
||||
virtual void SetLayoutDirection(wxLayoutDirection dir) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void DoGetPosition(int *x, int *y) const;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||
@@ -137,7 +139,6 @@ protected:
|
||||
// called to ensure that the value is in the correct range
|
||||
virtual void NormalizeValue();
|
||||
|
||||
|
||||
// the value of the control before the latest change (which might not have
|
||||
// changed anything in fact -- this is why we need this field)
|
||||
int m_oldValue;
|
||||
|
Reference in New Issue
Block a user