[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 182

type TOpenDialog = class(TFileDialog)

protected

  procedure DereferenceLinks; virtual;

  

  function CheckFile(); virtual;

  

A protected function which checks if the chosen file meets all requirements.

  function CheckFileMustExist(); virtual;

  

  function CheckAllFiles; virtual;

  

A protected method which calls CheckFile for each selected file.

  function DoExecute; override;

  

Internal procedure called to execute the dialog.

  function DefaultTitle; override;

public

  constructor Create(); override;

  procedure DoFolderChange; virtual;

  

  procedure DoSelectionChange; virtual;

  

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.