Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

OnValidationFailed event

Project: Shell Folders Unit.

Unit: PJShellFolders.

Class: TPJBrowseDialog

Applies to: ~>2.3

type
  TPJBrowseValidationFailedEvent = procedure(Sender: TObject;
    const EditText: string; var CanClose: Boolean) of object;

property OnValidationFailed: TPJBrowseValidationFailedEvent;

Description

OnValidationFailed is triggered whenever an invalid folder is entered in the browser dialog’s edit control and the user OKs. The event is only ever triggered if the Options property contains both the boNewDlgStyle and boEditBox options.

The event handler’s parameters are:

Implement an event handler to take any required action, such as displaying an error message.