7#if !defined(OWL_VALIDATE_H)
11#if defined(BI_HAS_PRAGMA_ONCE)
87 bool HasOption(
int option);
88 void SetOption(
int option);
89 void UnsetOption(
int option);
241 auto GetMin() const ->
TExtent;
246 void SetRange(const
TRange& range);
279 virtual bool Lookup(
LPCTSTR str);
356inline bool TValidator::HasOption(
int option)
364inline void TValidator::SetOption(
int option)
372inline void TValidator::UnsetOption(
int option)
380inline const tstring& TPXPictureValidator::GetPic()
const
392 TXValidator::Raise();
398inline const TCharSet& TFilterValidator::GetValidChars()
406inline void TFilterValidator::SetValidChars(
const TCharSet&
vc)
Definition of a bit set and a character set.
Derived from TBitSet, TCharSet sets and clears bytes for a group of characters.
A streamable class, TFilterValidator checks an input field as the user types into it.
A streamable class, TLookupValidator compares the string typed by a user with a list of acceptable va...
TPXPictureValidator objects compare user input with a picture of a data format to determine the valid...
Determines whether the data typed by a user falls within a designated range of integers.
auto GetRange() const -> TRange
Returns the given the minimum and maximum number the validator can accept.
auto GetMax() const -> TExtent
Returns the maximum number the validator can accept.
auto GetMin() const -> TExtent
Returns the minimum number the validator can accept.
Classes that inherit from TStreamableBase are known as streamable classes (their objects can be writt...
Derived from TLookupValidator, TStringLookupValidator is a streamable class.
const TSortedStringArray * GetStrings() const
Returns the set of valid strings used by the validator.
void SetStrings(TSortedStringArray *strings)
Sets the valid strings used by the validator.
A streamable class, TValidator defines an abstract data validation object.
uint16 Options
A bitmap member used to control options for various descendants of TValidator.
bool Valid(const tstring &str, TWindow *owner=0)
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TXOwl is root class of the ObjectWindows exception hierarchy.
A nested class, TXValidator describes an exception that results from an invalid validator object.
Definition of container classes used and made available by OWL.
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
TValidatorOptions
Bit-register flags used with TValidator::SetOption and UnsetOption.
TPicResult
Validation result type.
@ voReserved
Reserved for future use.
@ voTransfer
Option to perform conversion & transfer.
@ voOnAppend
Option to only validate input on appending.
@ voFill
Option to fill in chars on IsValidInput checks.
TTransferDirection
The TTransferDirection enum describes the constants that the transfer function uses to determine how ...
Object Windows Library (OWLNext Core)
Definition of container classes used and made available by OWL.
Base window class TWindow definition, including HWND encapsulation.