Unit 'Dialogs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TOpenDialog

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

Opens a file in the current directory, selected by File Dialog.

Declaration

Source position: dialogs.pp line 220

type TOpenDialog = class(TFileDialog)

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure ResolveLinks; virtual;

  

Gets physical file names for file references or symbolic links.

  procedure DereferenceLinks; virtual; deprecated ;

  

Resolves referential links.

  function CheckFile(); virtual;

  

Determines if the specified file name meets the requirements for the dialog.

  function CheckFileMustExist(); virtual;

  

CheckFileMustExist returns True if a file with the specified name exists.

  function CheckAllFiles; virtual;

  

Calls CheckFile for each selected file, returns True if all are OK.

  function DoExecute; override;

  

The function that actually takes care of executing the dialog.

  function DefaultTitle; override;

  

Gets the default title used for the Open Dialog.

public

  constructor Create(); override;

  

Constructor for the class instance.

  procedure DoCanClose(); override;

  

  procedure DoFolderChange; virtual;

  

DoFolderChange - execute the code for a folder change.

  procedure DoSelectionChange; virtual;

  

DoSelectionChange - execute the code for a change in selection.

  procedure IntfSetOption();

  

published

  property Options: TOpenOptions; [rw]

  

Options to be used for this dialog.

  property OnFolderChange: TNotifyEvent; [rw]

  

Event triggered when the user changes the folder in the OpenDialog.

  property OnSelectionChange: TNotifyEvent; [rw]

  

Event triggered when the user changes the selection made in the OpenDialog.

end;

Inheritance

TOpenDialog

  

Opens a file in the current directory, selected by File Dialog.

|

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.

|

TObject

Description

TOpenDialog opens a file in the current directory, selected by File Dialog. If the required file is not in the current directory, another directory can be selected with SelectDirectory.