This method displays the "Open" dialog which includes the file preview and information functions. This dialog is used to select an image file to be opened.

[C++Builder]   [ bool = ]imagekitcontrolname->FileIO->OpenFileDialog()
[Delphi]   [ Boolean = ]imagekitcontrolname.FileIO.OpenFileDialog()

Parameters

None

Return Value

Returns True if "Open" is selected. Returns False if "Cancel" is selected.

Explanation

The OpenFileDialog method displays the "Open" dialog which includes the file preview and information functions. This dialog is used to select an image file to be opened.

By setting the FilePath and FileExt properties it is possible to control the directory and types of files that are listed when the "Open" dialog is displayed. For details, please refer to the explanation for those properties.

Prior to executing this method, if the ExtendedDialog property is set to true, when the dialog is displayed the preview and file information checkboxes are displayed. Even if the Preview and Information properties are False, these checkboxes will be displayed.

If the Open button is clicked, then the file name and path are set into the FileName property.

 

The ImageKit10 VCL is a product created by Newtone Corporation