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

TOpenDialog.DoFolderChange

Signals the OnFolderChange event handler when a new directory is selected during execution of the dialog.

Declaration

Source position: dialogs.pp line 257

public procedure TOpenDialog.DoFolderChange; virtual;

Description

DoFolderChange is a method used to perform actions needed when a new directory is selected using the open dialog. DoFolderChange signals the OnFolderChange event handler (when assigned) using the dialog instance as the object for the notification.

DoFolderChange is called from the widgetset class when directory navigation has occurred in the native dialog. FileName contains the path for the newly selected directory when the method is called.

Use InitialDir to specify the initial directory displayed when the dialog is executed.

Use OnSelectionChange to perform actions needed when a new file is selected using the dialog and the value in FileName is modified.

See also

TOpenDialog.OnFolderChange

  

Event signalled when a new directory is selected in 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.InitialDir

  

Contains the initial directory displayed when the dialog is opened.


Version 4.0 Generated 2025-05-03 Home