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

TFileDialog

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

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

Declaration

Source position: dialogs.pp line 105

type TFileDialog = class(TCommonDialog)

protected

  function DoExecute; override;

  

Internal procedure called to execute the dialog.

  function GetFilterIndex; virtual;

  

  procedure SetFileName(); virtual;

  

  procedure SetFilter(); virtual;

  

  procedure SetHistoryList(); virtual;

  

public

  constructor Create(); override;

  destructor Destroy; override;

  

  procedure DoTypeChange; virtual;

  

  function Execute; override;

  

Public method which causes the dialog to be shown.

  property Files: TStrings; [r]

  

Stringlist which stores the selected files.

  property HistoryList: TStrings; [rw]

  

  procedure IntfFileTypeChanged();

  

published

  property Title;

  

Title - the text appearing in the title label at the top of the dialog

  property DefaultExt: String; [rw]

  

Sets the default file extension for the file dialog box.

  property FileName: String; [rw]

  

String to store the name of the file chosen by the user.

  property Filter: String; [rw]

  

A string which contains possible filename filters (eg .doc, .xmp, .pas etc).

  property FilterIndex: Integer; [rw]

  

This property sets which file filter is the default.

  property InitialDir: String; [rw]

  

Set the directory the dialog shows on opening.

  property OnHelpClicked: TNotifyEvent; [rw]

  

Event handler when the Help button is clicked

  property OnTypeChange: TNotifyEvent; [rw]

  

Event Handler when the selected file type is changed

end;

Inheritance

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

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

This is also the base class for the Open and Save (As) dialogs

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