[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)

TOpenDialog

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

TOpenDialog : open a file in the current directory, selected by File Dialog.

Declaration

Source position: dialogs.pp line 183

type TOpenDialog = class(TFileDialog)

  class procedure WSRegisterClass; override;

  

WSRegisterClass - Register this Class for the current Widget Set

protected

  procedure DereferenceLinks; virtual;

  

DereferenceLinks - removes all existing referential links

  function CheckFile(); virtual;

  

CheckFile - returns True if the nominated file meets all requirements.

  function CheckFileMustExist(); virtual;

  

CheckFileMustExist - returns True if a file with the supplied name actually exists

  function CheckAllFiles; virtual;

  

A protected method which 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;

  

DefaultTitle - returns the default title for a dialog

public

  constructor Create(); override;

  

Create - constructor for TOpenDialog: calls inherited Create then loads default options

  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

  

TOpenDialog : open a file in the current directory, selected by File Dialog.

|

TFileDialog

  

TFileDialog : allows selection of a file from the current directory.

|

TCommonDialog

  

TCommonDialog : the base type from which other dialogs are derived

|

TLCLComponent

?

TObject

Description

TOpenDialog : open 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 Select Directory