SaveDialog¶
Qualified name: delphivcl.SaveDialog
- class SaveDialog¶
Bases:
OpenDialogTSaveDialog displays a “Save As” dialog for saving files. TSaveDialog displays a modal Windows dialog box for selecting file names and saving files. The dialog does not appear at runtime until it is activated by a call to the Execute method. When the user clicks Save, the dialog closes and the selected file name is stored in the FileName property.
Methods
TOpenDialog.Execute() Displays the dialog
Attributes
ClassNameReturns the TObject.ClassName
ComObjectSpecifies the interface reference implemented by the component.
ComponentCountReturns the owned component count
ComponentIndexIndicates the position of the component in its owner's Components property array.
ComponentStateDescribes the current state of the component, indicating when a component needs to avoid certain actions.
ComponentStyleGoverns the behavior of the component.
ComponentsReturns an iterator over the owned components
Ctl3Dbool:
DefaultExtSpecifies a default file extension.
DesignInfoContains information used by the Form designer.
FileEditStyleDetermines the style of the file-selection dialog.
FileNameFilesList of selected file names.
FilterDetermines the file masks (filters) available in the dialog. The file-selection dialog includes a drop-down list of file types under the edit box. When the user picks a file type from the list, only files of the selected type are displayed in the dialog. To configure file masks at design time, click on the ellipsis marks (...) to the right of the Filter property in the Object Inspector. This opens the Filter editor. In the left column of the Filter editor, under Filter Name, type a brief description of each file type that will be available at runtime. In the right column, under Filter, type the file mask corresponding to each description. For example, the description "Text files" might appear to the left of the mask ".txt", and the description "Pascal source files" might appear to the left of the mask ".pas". Since the description appears in the drop-down list at runtime, it is often helpful to show the mask explicitly in the description (for example, "Text files (*.txt)"). To create file masks in program code, assign a value to the Filter property that consists of a description and a mask separated by a vertical bar (pipe) character. Do not include spaces around the vertical bar. For example,.
FilterIndexDetermines which filter is selected by default when the dialog opens.
Handleint:
HelpContextint:
HistoryListMaintains a list of previously selected files.
InitialDirDetermines the current directory when the dialog opens.
NameSpecifies the name of the component as referenced in code.
ObserversIndicates the TObservers object added to the TComponent.
OnIncludeItemCallable[[OFNotifyEx, bool], None]:
OptionsDetermines the appearance and behavior of the file-selection dialog.
OptionsExAugments the Options property with additional flags that determine the appearance and behavior of the file-selection dialog.
OwnerReturns the Component Owner
TagStores a NativeInt integral value as a part of a component.
TitleSpecifies the text in the dialog's title bar.
VCLComObjectRepresents information used internally by components that support COM.
- Execute()¶
Displays the dialog