wxWidgets: Validators

| Version: 3.1.5

Loading...
Searching...
No Matches
Classes | Enumerations
Validators
Class List by Category

## Detailed Description

These are the window validators, used for filtering and validating user input.

Related Overviews: wxValidator Overview

## Classes
class | wxNumValidator< T >
| wxNumValidator is the common base class for numeric validator classes. More...
class | wxIntegerValidator< T >
| Validator for text entries used for integer entry. More...
class | wxFloatingPointValidator< T >
| Validator for text entries used for floating point numbers entry. More...
class | wxGenericValidator
| wxGenericValidator performs data transfer (but not validation or filtering) for many type of controls. More...
class | wxValidator
| wxValidator is the base class for a family of validator classes that mediate between a class of control, and application data. More...
class | wxTextValidator
| wxTextValidator validates text controls, providing a variety of filtering behaviours. More...

## Enumerations
enum | wxNumValidatorStyle { wxNUM_VAL_DEFAULT = 0 , wxNUM_VAL_THOUSANDS_SEPARATOR = 1 , wxNUM_VAL_ZERO_AS_BLANK = 2 , wxNUM_VAL_NO_TRAILING_ZEROES }
| Bit masks used for numeric validator styles. More...

## Enumeration Type Documentation

## ◆ wxNumValidatorStyle

enum wxNumValidatorStyle

Bit masks used for numeric validator styles.

A combination of these flags can be used when creating wxIntegerValidator and wxFloatingPointValidator objects and with their SetStyle() methods.

Since
  2.9.2 <>< =''>:</>&;&;< =''>\ </></>

Enumerator
wxNUM_VAL_DEFAULT | Indicates absence of any other flags. This value corresponds to the default behaviour.
wxNUM_VAL_THOUSANDS_SEPARATOR | Use thousands separators in the numbers. When this style is used, numbers are formatted using the thousands separators after validating the user entry (if the current locale uses the thousands separators character).
wxNUM_VAL_ZERO_AS_BLANK | Show a value of zero as an empty string. With this style a value of zero in the associated variable is translated to an empty string and an empty value of the control is translated to a value of zero.
wxNUM_VAL_NO_TRAILING_ZEROES | Remove trailing zeroes from the fractional part of the number. This style can only be used with wxFloatingPointValidator and indicates that trailing zeroes should be removed from the control text when it is validated. By default, as many zeroes as needed to satisfy the precision used when creating the validator will be appended. For example, without this style a wxFloatingPointValidator with a precision 3 will show the value of 1.5 as "1.500" after validation. With this style, the value will be shown as just "1.5" (while a value of e.g. 1.567 will still be shown with all the three significant digits, of course).