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

# TPreviewFileDialog

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TPreviewFileDialog - a dialog that allows the contents of a file to be inspected before opening the file.

## Declaration

Source position: extdlgs.pas line 53

`type TPreviewFileDialog = class(TOpenDialog)`
`protected`
`class procedure WSRegisterClass; override;` |  | Registers this component class with the current WidgetSet.
`procedure CreatePreviewControl; virtual;` |  | CreatePreviewControl - create an instance of the windowed control used in the dialog.
`procedure InitPreviewControl; virtual;` |  | InitPreviewControl - initializes the windowed control created for the dialog.
`function DoExecute; override;` |  | Creates the PreviewFileControl and displays the dialog.
`public`
`constructor Create(); override;` |  | Constructor for the class instance.
`property PreviewFileControl: TPreviewFileControl; [r]` |  | Windowed control used to preview the contents of a file in the dialog.
`end;`

## Inheritance

`TPreviewFileDialog` |  | TPreviewFileDialog - a dialog that allows the contents of a file to be inspected before opening the file.
`TOpenDialog` |  | Implements a File / Open dialog used to select one or more files on the local file system.
`TFileDialog` |  | TFileDialog allows selection of a file from the current directory.
`TCommonDialog` |  | The base type from which other dialogs are derived.
`TLCLComponent` |  | The base class for LCL components which have an associated widget.
`TComponent`
?
`TObject`

## Description

TPreviewFileDialog is a TOpenDialog descendant which implement a dialog used to preview and select a file on the local file system. TPreviewFileDialog extends the ancestor class with additional properties, methods, and events used to configure and execute the dialog.

## See also

TPreviewFileControl |  | TPreviewFileControl - a windowed control allowing the contents of a file to be previewed before opening.
TOpenDialog |  | Implements a File / Open dialog used to select one or more files on the local file system.