]> git.saurik.com Git - wxWidgets.git/commit
Allow entering minus sign in wxMSW wxSpinCtrl if needed.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Aug 2009 22:48:35 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Aug 2009 22:48:35 +0000 (22:48 +0000)
commit345ff9c65b3ef17709785708b224dfcbf5135583
tree1eb9b06a7bd7c169dbed846ecd4dbe7433c7e4a2
parent07890fbeb5e65f242e8632ed957c54e188779af2
Allow entering minus sign in wxMSW wxSpinCtrl if needed.

Only restrict input to wxMSW wxSpinCtrl to digits only if it doesn't support
negative values, otherwise the user can't enter any negative numbers. As there
is no built in support for entering digits and minus sign only, simply allow
all characters to be used if the negative numbers must indeed be possible to
enter.

Closes #11082.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/spinctrl.h
src/msw/spinctrl.cpp