These are the window validators, used for filtering and validating user input.
Related Overviews: wxValidator Overview
クラス | |
class | wxNumValidator< T > |
wxNumValidator is the common base class for numeric validator classes. More... | |
class | wxIntegerValidator< T > |
整数を入力するテキスト項目に使用するバリデータ。More... | |
class | wxFloatingPointValidator< T > |
浮動小数点を入力するテキスト項目に使用するバリデータ。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... |
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.
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). |