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

# TOpenPictureDialog.DoSelectionChange

Performs actions needed when the selected file name for the dialog is changed.

## Declaration

Source position: extdlgs.pas line 91

`public procedure TOpenPictureDialog.DoSelectionChange; override;`

## Description

DoSelectionChange is an overridden method used to perform actions needed when the selected file name for the dialog is changed. DoSelectionChange calls UpdatePreview to update the PreviewFileName, ImageCtrl and PictureGroupBox properties.

DoSelectionChange calls the inherited method to signal the OnSelectionChange event handler (when assigned).

## See also

TOpenPictureDialog.ImageCtrl |  | TImage used to preview the content in an image file.
TOpenPictureDialog.PictureGroupBox |  | PictureGroupBox - a groupbox related to a single picture ???
TOpenDialog.OnSelectionChange |  | Event triggered when the user changes the folder of file selection(s) made in the OpenDialog.
TOpenDialog.DoSelectionChange |  | Performs actions when the selected file in FileName has been changed.