Sign in Join
FPDoc Onlineexperiment

TFileDialog class

In unit Dialogs

TFileDialog allows selection of a file from the current directory.

Declaration

pascal
TFileDialog = class(TCommonDialog)

Inheritance

  1. TFileDialog
  2. TCommonDialog
  3. TLCLComponent
  4. TComponent

Descends from it: TOpenDialog

Description

TFileDialog allows selection of a file from the current directory. This is also the base class for the Open and Save (As) dialogs.

See also

Properties

FilespublicStores the names of files (or directories) selected using the dialog.
HistoryListpublicHistoryList - stringlist containing the names of files recently accessed.
TitlepublishedThe Title or Caption displayed for the dialog.
DefaultExtpublishedContains the default extension for file names in the dialog.
FileNamepublishedContains the UTF-8-encoded name for a file chosen using the dialog.
FilterpublishedA string which contains available filename filters used to select files by their file extensions.
FilterIndexpublishedThis property sets which file filter is the default.
InitialDirpublishedContains the initial directory displayed when the dialog is opened.

Methods

WSRegisterClassprotectedRegisters this component class with the current WidgetSet.
GetFilterIndexprotectedGets the value for the FilterIndex property.
SetFileNameprotectedSet the value for the FileName property.
SetFilterprotectedSets the value for the Filter property.
SetHistoryListprotectedSets the value for the HistoryList property.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
DoCanClosepublicPerforms actions needed to determine if the dialog can be closed.
DoTypeChangepublicPerforms actions needed when the value in FilterIndex has been changed.
IntfFileTypeChangedpublicSignals the OnTypeChange event handler when the value in FilterIndex is changed by the widgetset class instance.
FindMaskInFilterpublic
ExtractAllFilterMaskspublic

Events

OnHelpClickedpublishedEvent handler signalled when the Help button is clicked.
OnTypeChangepublishedEvent handler signalled when the selected file type or filter index is changed.

Inherited

From TCommonDialog (22)

AttachTo Close DefaultTitle DoClose DoExecute DoShow Execute GetHeight GetWidth Handle HandleAllocated Height HelpContext OnCanClose OnClose OnDialogResult OnShow ResetShowCloseFlags SetHeight SetWidth UserChoice Width

From TLCLComponent (7)

DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.