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

type TOpenDialog = class(TFileDialog) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  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 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.

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

  

The base class for LCL components associated with widgets.

|

TComponent

?

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.