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.

OnSelChange event

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;

Description

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:

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