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.
Unit: PJShellFolders.
Class: TPJBrowseDialog
Applies to: ~>2.0
type
TPJBrowseSelChangeEvent = procedure(Sender: TObject;
FolderName, DisplayName: AnsiString; var StatusText: AnsiString;
var OKEnabled: Boolean) of object;
property OnSelChange: TPJBrowseSelChangeEvent;
OnSelChange is triggered whenever the selection in the dialog box changes. This can occur before the dialog is displayed and before the OnInitialise event fires. Write a handler to perform any required processing when the selected folder changes and to update the status text and state of the dialog’s OK button. The OnSelChange event is immediately followed by the OnSelChangeEx event. It is recommended that only one of these events is handled.
The event handler’s parameters are as follows:
boStatusText
and does not include boNewDlgStyle
[~>2.2].boDirsOnly
is included in the Options property. If boDirsOnly
is 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 OnSelChange is triggered the dialog’s window handle is available via the Handle property.