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
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
typedef T ValueType;
/**
- Validator constructor.
+ Constructor for validator using the default precision.
+
+ @param value
+ A pointer to the variable associated with the validator. If non
+ @NULL, this variable should have a lifetime equal to or longer than
+ the validator lifetime (which is usually determined by the lifetime
+ of the window).
+ @param style
+ A combination of wxNumValidatorStyle enum values.
+ */
+ wxFloatingPointValidator(ValueType *value = NULL,
+ int style = wxNUM_VAL_DEFAULT);
+
+ /**
+ Constructor for validator specifying the precision.
@param value
A pointer to the variable associated with the validator. If non
The number of decimal digits after the decimal separator to show
and accept.
*/
- //@{
- wxFloatingPointValidator(ValueType *value = NULL,
- int style = wxNUM_VAL_DEFAULT);
wxFloatingPointValidator(int precision,
ValueType *value = NULL,
int style = wxNUM_VAL_DEFAULT);
- //@}
/**