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
This commit is contained in:
Vadim Zeitlin
2009-08-23 22:48:35 +00:00
parent 07890fbeb5
commit 345ff9c65b
2 changed files with 23 additions and 5 deletions

View File

@@ -67,6 +67,7 @@ public:
virtual void SetValue(int val);
virtual int GetValue() const;
virtual void SetRange(int minVal, int maxVal);
virtual bool SetFont(const wxFont &font);
virtual void SetFocus();