X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a54cf37118275c43cf03beb9a8960bba0d8a957c..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/valnum.h diff --git a/interface/wx/valnum.h b/interface/wx/valnum.h index 56268d3647..0ca772304c 100644 --- a/interface/wx/valnum.h +++ b/interface/wx/valnum.h @@ -5,7 +5,7 @@ // Created: 2010-11-06 // Copyright: (c) 2010 wxWidgets team // (c) 2011 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -101,7 +101,7 @@ public: Calling this is equivalent to calling both SetMin() and SetMax(). */ - void SetRange(ValueType min, ValueType max) + void SetRange(ValueType min, ValueType max); /** @@ -156,6 +156,12 @@ public: be restricted further by calling SetMin() and SetMax() or SetRange() methods inherited from the base class. + When the validator displays integers with thousands separators, the + character used for the separators (usually "." or ",") depends on the locale + set with wxLocale (note that you shouldn't change locale with setlocale() + as this can result in a mismatch between the thousands separator used by + wxLocale and the one used by the run-time library). + A simple example of using this class: @code class MyDialog : public wxDialog @@ -252,6 +258,12 @@ wxMakeIntegerValidator(T *value, int style = wxNUM_VAL_DEFAULT); implementation. As with the range, the precision can be restricted after the validator creation if necessary. + When the validator displays numbers with decimal or thousands separators, + the characters used for the separators (usually "." or ",") depend on the + locale set with wxLocale (note that you shouldn't change locale with + setlocale() as this can result in a mismatch between the separators used by + wxLocale and the one used by the run-time library). + A simple example of using this class: @code class MyDialog : public wxDialog