Scroll the control automatically if there is not enough space. This is
consistent with (single line) wxTextCtrl and wxSpinCtrl under the other
platforms.
Closes #14211.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71389
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
possible or wxWindowDisabler otherwise.
+Changes in behaviour visible to end users
+-----------------------------------------
+
+- In wxMSW wxSpinCtrl used to prevent the user from entering more digits than
+ could fit in its visible area. This was inconsistent with the other ports and
+ now the control scrolls if too much text is added.
+
+
Major new features in this release
----------------------------------
WXDWORD exStyle = 0;
WXDWORD msStyle = MSWGetStyle(GetWindowStyle(), & exStyle) ;
+ // Scroll text automatically if there is not enough space to show all of
+ // it, this is better than not allowing to enter more digits at all.
+ msStyle |= ES_AUTOHSCROLL;
+
// propagate text alignment style to text ctrl
if ( style & wxALIGN_RIGHT )
msStyle |= ES_RIGHT;