Unit 'MUIClass.Dialog' Package
[Overview][Types][Classes][Procedures and functions][Index] [#MUIClass]

TFileDialog

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

Standard Load/Save File requester

Declaration

Source position: MUIClass.Dialog.pas line 20

type TFileDialog = class(TBaseDialog)

public

  constructor Create; virtual;

  

Create a File Dialog

  function Execute; override;

  

Open the File dialog and wait for the user input.

  property SaveMode: Boolean; [rw]

  

Turn the Requester into a Save Requester

  property MultiSelect: Boolean; [rw]

  

Allow selecting multiple files in open requesters

  property Pattern: string; [rw]

  

Set a pattern to filter the files in the requester

  property Directory: string; [rw]

  

Define the initial Directory or get the selected Directory

  property FileName: string; [rw]

  

Filename of the selected file.

  property FileNames: TStringList; [r]

  

List of filenames selected

  property DrawersOnly: Boolean; [rw]

end;

Inheritance

TFileDialog

  

Standard Load/Save File requester

|

TBaseDialog

  

BaseClass for ASL Requester, no need to instance this class use the subclasses

|

TObject

Description

Example:

FileDialog := TFileDialog.Create;
try
  FileDialog.TitleText := 'Select file to open';
  FileDialog.Pattern := '#?.dat';
  FileDialog.Directory := 'DH1:Data';
  if FileDialog.Execute then
    LoadFile(FileDialog.Filename);
finally
  FileDialog.Free;
end;

Documentation generated on: 2024-04-20