X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e36db5ecaca60f633fa3321b30feae863eaeecd..96c9640205933ad0673d5af2c96af0816c50160c:/src/msw/spinctrl.cpp?ds=inline diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index d5b95d4115..0017413e0a 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -298,6 +298,10 @@ bool wxSpinCtrl::Create(wxWindow *parent, 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;