[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TOpenDialog.OnFolderChange

Event signalled when a new directory is selected in the dialog.

## Declaration

Source position: dialogs.pp line 263

`published property TOpenDialog.OnFolderChange : TNotifyEvent read FOnFolderChange write FOnFolderChange;`

## Description

OnFolderChange is a TNotifyEvent property with the event handler signalled when the current directory is changed using the dialog. OnFolderChange is signalled (when assigned) from the DoFolderChange method when it is called from methods in the widgetset class instance. It is called when the value in FileName has been changed as a result of directory navigation using the native dialog for the platform.

The dialog class instance is used as the Sender object for the event notification.

Please note that changing the current folder (and updating FileName with the new directory) will also trigger the OnSelectionChange event.

## See also

TOpenDialog.Options |  | Options to be used for this dialog.
TOpenDialog.DoFolderChange |  | Signals the OnFolderChange event handler when a new directory is selected during execution of the dialog.
TOpenDialog.OnSelectionChange |  | Event triggered when the user changes the folder of file selection(s) made in the OpenDialog.
TFileDialog.FileName |  | Contains the UTF-8-encoded name for a file chosen using the dialog.
TFileDialog.Files |  | Stores the names of files (or directories) selected using the dialog.