CFileDlg Properties


Several class properties are available for customizing the Open and Save dialogs. These dialogs can be used with default settings. Alternatively, to customize them, each property must be "unlocked" by setting a property flag to true. By default, the new constructor sets all property flags to false so that default values will be used. Set the property flags between the point of using new and either Open or Save.

Properties - Set before calling Open or Save Methods

bSetOpenTitle

Set true to specify the title for the Open dialog. You also can set the title simply by passing the title as the parameter of the Open method.

sOpenTitle

Specify the title used for the Open dialog.

bSetSaveTitle

Set true to specify the title for the Save dialog.

sSaveTitle

Specify the title used for the Save dialog.

bSetFilterList

Set true to specify the list of file filters.

sFilterList

Specify the filter list. See description under the Open method.

bSetFilterIndex

Set true to specify the starting index in the list of file filters.

nFilterIndex

The filter index to be selected when the dialog opens, starting at 1.

bSetMaxFiles

Set true to specify the maximum number of file names to return.

nMaxFiles

The maximum number of files to select. The default value is 1.

bSetUseImageSet

Set true to check the "Use Image Set" option in the Open dialog.

bUseImageSet

Sets the value of the "Use Image Set" option to true or false in the Open dialog.

bSetFlipFitsFiles

Set true to check the "Flip FITS Files" option in the Open dialog.

bFlipFitsFiles

Sets the value of the "Flip FITS Files" option to true or false in the Open dialog.

Properties - Returned by Open and Save Methods

bUseImageSet

The value of the "Use Image Set" option selected in the Open dialog.

bFlipFitsFiles

The value of the "Flip FITS Files" option selected in the Open dialog.

sExt

The file extension selected in the Open or Save dialog. If more than 1 file is selected, this string is empty.

nFilterIndex

The index of the file extension in the Filter List that was selected in the Open or Save dialog.

sFileName

If 1 file is selected, this is the name of the file that was selected. If more than 1 file is selected, this specifies the path to the selected files.

Related Topics

CFileDlg class


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.