JVCL Help:TJvCustomValidateEdit.OnCustomValidate
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvCustomValidateEdit.OnCustomValidate Event
[+] TJvCustomValidateEdit Events
[+] TJvCustomValidateEdit Methods
[+] TJvCustomValidateEdit Properties
Search in JVCL Help
Search in all projectsSummary
Occurs when the control needs to validate input and DisplayFormat is dfCustom.
Pascal
TJvCustomTextValidateEvent = procedure (Sender: TObject; Key: Char; const AText: string; const Pos: Integer; varIsValid: Boolean) ofobject;
propertyOnCustomValidate: TJvCustomTextValidateEvent;
Parameters
Parameters | Description |
Pos | The current caret position in the text. |
IsValid | Set to true to accept the text, false otherwise. |
AText | The current text of the control. |
Sender | The TJvCustomValidateEdit that called the event. |
Key | The key that was pressed last. |
Description
Write a handler for this event when DisplayFormat is set to dfCustom. To allow a character to be entered into the control, set IsValid to true. To prevent a character from being entered, set IsValid to false.
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page