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

# TOpenPictureDialog.InitPreviewControl

Initializes the PreviewFileControl for the dialog.

## Declaration

Source position: extdlgs.pas line 85

`protected procedure TOpenPictureDialog.InitPreviewControl; override;`

## Description

InitPreviewControl is overridden in TOpenPictureDialog. InitPreviewControl calls the inherited method, and ensures that PreviewFileControl is assigned as the Parent control for PictureGroupBox. InitPreviewControl is called from the inherited CreatePreviewControl method.

## See also

TPreviewFileDialog.PreviewFileControl |  | Windowed control used to preview the contents of a file in the dialog.
TPreviewFileDialog.CreatePreviewControl |  | CreatePreviewControl - create an instance of the windowed control used in the dialog.
TPreviewFileDialog.InitPreviewControl |  | InitPreviewControl - initializes the windowed control created for the dialog.
TOpenPictureDialog.ImageCtrl |  | TImage used to preview the content in an image file.