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.

OnSelChangeEx event

Project: Shell Folders Unit.

Unit: PJShellFolders.

Class: TPJBrowseDialog

Applies to: ~>2.0

  TPJBrowseSelChangeEventEx = procedure(Sender: TObject;
    PIDL: PItemIDList; var StatusText: AnsiString;
    var OKEnabled: Boolean) of object;

property OnSelChangeEx: TPJBrowseSelChangeEventEx;


This event is triggered whenever the selected folder in the dialog box changes. It provides access to the PIDL of the folder that has been selected. The event immediately follows the OnSelChange event and can occur before the dialog is displayed and before the OnInitialise event is triggered. Write a handler to perform any required processing of the PIDL when the selected folder changes and to update the status text and state of the dialog’s OK button. It is recommended that only one of the OnSelChange and OnSelChangeEx events is handled.

The event handler’s parameters are as follows:

When OnSelChangeEx is triggered the dialog’s window handle is available via the Handle property.