TFileDialog class
TFileDialog allows selection of a file from the current directory.Declaration
TFileDialog = class(TCommonDialog)Inheritance
- TFileDialog
- TCommonDialog
- TLCLComponent
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
Files | public | Stores the names of files (or directories) selected using the dialog. |
HistoryList | public | HistoryList - stringlist containing the names of files recently accessed. |
Title | published | The Title or Caption displayed for the dialog. |
DefaultExt | published | Contains the default extension for file names in the dialog. |
FileName | published | Contains the UTF-8-encoded name for a file chosen using the dialog. |
Filter | published | A string which contains available filename filters used to select files by their file extensions. |
FilterIndex | published | This property sets which file filter is the default. |
InitialDir | published | Contains the initial directory displayed when the dialog is opened. |
Methods
WSRegisterClass | protected | Registers this component class with the current WidgetSet. |
GetFilterIndex | protected | Gets the value for the FilterIndex property. |
SetFileName | protected | Set the value for the FileName property. |
SetFilter | protected | Sets the value for the Filter property. |
SetHistoryList | protected | Sets the value for the HistoryList property. |
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
DoCanClose | public | Performs actions needed to determine if the dialog can be closed. |
DoTypeChange | public | Performs actions needed when the value in FilterIndex has been changed. |
IntfFileTypeChanged | public | Signals the OnTypeChange event handler when the value in FilterIndex is changed by the widgetset class instance. |
FindMaskInFilter | public | |
ExtractAllFilterMasks | public |
Events
OnHelpClicked | published | Event handler signalled when the Help button is clicked. |
OnTypeChange | published | Event 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.
