Describes minimum required functionality from MaskEdit control validator.
You can find more information in comments below. Overrided methods can be found in corresponding base interface.
class IMaskValidator
{
public:
/**
Validate specified text via specified mask. Allowed to change text and edit properties. The method should not set text or caret position in specified MaskEdit control
@param edit MaskEdit control called the method
@param mask Mask stored in MaskEdit control. Validator may or mat not use it
@param original Original text before changes
@param text Text to be validated. Could be changed
@param caret_position Has current caret position. Could be changed by validator
@return true if text is okay and can be set into MaskEdit control.
*/
virtual bool Validate(IMaskEdit *edit, const String &mask, const String &original, String &text, int &caret_position) = 0;
};
Namespace: | nitisa::standard |
Include: | Standard/Controls/IMaskEdit.h |