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.
Project: Shell Folders Unit.
Applies to: ~>2.0
type 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:
boStatusTextand does not include
boNewDlgStyle[~>2.2]. Setting the status text in this event handler will override any status text set in the OnSelChange event handler.
boDirsOnlyis included in the Options property. If
boDirsOnlyis included in Options then the OK button will be enabled when a physical folder is selected and disabled when a virtual folder is selected.
When OnSelChangeEx is triggered the dialog’s window handle is available via the Handle property.