JVCL Help:TJvBrowseForFolderDialog.OnValidateFailed

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when the user typed an invalid name into the edit box of the Browse dialog box.


Pascal

 TJvValidateFailedEvent = procedure (Sender: TObject; const AEditText: string; var CanCloseDialog: Boolean) ofobject;
propertyOnValidateFailed: TJvValidateFailedEvent;


Parameters

Parameters Description
CanCloseDialog Set to true to allow the dialog to be dismissed, set to false to keep the dialog displayed.
AEditText Specifies the invalid name.
Sender The TJvBrowseForFolderDialog component that has sent this event.


Description

Write an OnValidateFailed event handler to respond when the user types an invalid name into the edit box of the Browse dialog box.
Set the CanCloseDialog parameter to false to prevent the dialog from closing. The OnValidateFailed event handler is responsible for telling the user why the dialog doesn’t close.
Flags odEditBox and odValidate must be included in Options.


See Also

TJvBrowseForFolderDialog.OnAcceptChange, TJvBrowseForFolderDialog.OnChange, TJvBrowseForFolderDialog.SetOKEnabled


About

Notes

Only for shell versions 4.71 and up.


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