OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Validator classes

TValidator forms the base class for several ObjectWindows classes that encapsulate validation objects. More...

Classes

class  owl::TValidator
 A streamable class, TValidator defines an abstract data validation object. More...
 
class  owl::TXValidator
 A nested class, TXValidator describes an exception that results from an invalid validator object. More...
 
class  owl::TPXPictureValidator
 TPXPictureValidator objects compare user input with a picture of a data format to determine the validity of entered data. More...
 
class  owl::TFilterValidator
 A streamable class, TFilterValidator checks an input field as the user types into it. More...
 
class  owl::TRangeValidator
 Determines whether the data typed by a user falls within a designated range of integers. More...
 
class  owl::TLookupValidator
 A streamable class, TLookupValidator compares the string typed by a user with a list of acceptable values. More...
 
class  owl::TStringLookupValidator
 Derived from TLookupValidator, TStringLookupValidator is a streamable class. More...
 

Enumerations

enum  owl::TValidatorOptions { owl::voFill = 0x0001 , owl::voTransfer = 0x0002 , owl::voOnAppend = 0x0004 , owl::voReserved = 0x00F8 }
 Bit-register flags used with TValidator::SetOption and UnsetOption. More...
 
enum  owl::TPicResult { owl::prComplete , owl::prIncomplete , owl::prEmpty , owl::prError , owl::prSyntax , owl::prAmbiguous , owl::prIncompNoFill }
 Validation result type. More...
 

Detailed Description

TValidator forms the base class for several ObjectWindows classes that encapsulate validation objects.

The following derived classes make it easy for you to add data validation to your applications.

Enumeration Type Documentation

◆ TPicResult

Validation result type.

TPicResult is the result type returned by the Picture member function of TPXPictureValidator. The result type indicates whether the data entered into the edit control matches a specified format. For example, prIncomplete indicates that the data entered is missing some information that was specified in the format picture of the data.

Enumerator
prComplete 
prIncomplete 
prEmpty 
prError 
prSyntax 
prAmbiguous 
prIncompNoFill 

Definition at line 128 of file validate.h.

◆ TValidatorOptions

Bit-register flags used with TValidator::SetOption and UnsetOption.

Enumerator
voFill 

Option to fill in chars on IsValidInput checks.

Used by picture validators to indicate whether to fill in literal characters as the user types.

voTransfer 

Option to perform conversion & transfer.

The validator handles data transfer for the input line. Currently only used by range validators.

voOnAppend 

Option to only validate input on appending.

Used by picture validators to determine how to interact with edit controls.

voReserved 

Reserved for future use.

Definition at line 33 of file validate.h.