OpenFileDialogOptions
- Updated2024-10-09
- 2 minute(s) read
OpenFileDialogOptions
These constants represent the options you can use with the openFileDialogFlags parameter of the Engine.DisplayFileDialog method. Use the bitwise-OR operator to specify more than one option.
- OpenFile_DisableUseAbsPathCheck –(Value: 0x1) Dims the Use Absolute Path option.
- OpenFile_FileMustNotExist –(Value: 0x10) Specifies that the pathname the user entered must not exist on disk. If the user selects an existing file, the dialog box displays a warning message and does not close.
- OpenFile_HideMultiSelectListCtrl –(Value: 0x400) For multiple selection file dialog boxes, hides the list control that shows the currently selected pathnames. If you do not set this option, the TestStand File dialog box displays an additional list control that contains the currently selected pathnames. Create a multiple selection dialog box by passing the WinFileDlg_ALLOWMULTISELECT option to the win32Flags parameter.
- OpenFile_HideUseAbsPathCheck –(Value: 0x80) Hides the Use Absolute Path option.
- OpenFile_IgnoreInitialPathExtension –(Value: 0x1000) If the initial path specifies a file and the file extension is not part of the file filter string, TestStand removes the file extension from the default name that appears in the open file dialog box.
- OpenFile_InitialSetBrowseIntoLLB –(Value: 0x20) Enables the Browse Into LLB option.
- OpenFile_InitialSetUseAbsPathCheck –(Value: 0x2) Sets the initial state of the Use Absolute Path option to enabled when the dialog box first opens.
- OpenFile_InitialUnsetUseAbsPathCheck –(Value: 0x4) Sets the initial state of the Use Absolute Path option to disabled when the dialog box first opens.
- OpenFile_ModalToAppMainWind –(Value: 0x10000) By default, the dialog box is modal to the last active window of the calling thread, or if none exists, to the last active window from AppMainHwnd. If you set this option, the dialog box is modal with respect to the window handle of the Engine.AppMainHwnd property. Typically, you do not need to set this option.
- OpenFile_NoOptions –(Value: 0x0) No options.
- OpenFile_ResolveNonExistentFile –(Value: 0x8) Verifies that the Engine.FindFileEx method would find files in pathnames that specify files that do not exist if the files did exist. Use this option with the Save As dialog box to ensure that TestStand saves the file to a pathname under one of the TestStand search directories .
- OpenFile_SaveAsDialog –(Value: 0x40) Creates a Save As dialog box.
- OpenFile_SelectDirectoriesOnly –(Value: 0x200) Creates a Directory Selection dialog box. The user can select only folders.
- OpenFile_ShowBrowseIntoLLBCheck –(Value: 0x100) Shows the Browse Into LLB option, which allows users to browse the contents of a LabVIEW LLB file.
- OpenFile_SubstituteMacrosByDefault –(Value: 0x2000) Enables the Substitute Path Macros option in the File Not Found dialog box and the File Conflict dialog box.
- OpenFile_UseAbsolutePath –(Value: 0x83) Combination of the OpenFile_DisableUseAbsPathCheck , OpenFile_InitialSetUseAbsPathCheck , and OpenFile_HideUseAbsPathCheck flags. Use this flag to ensure that the method returns only absolute pathnames.
- OpenFile_UseRelativePath –(Value: 0x85) Combination of the OpenFile_DisableUseAbsPathCheck , OpenFile_InitialUnsetUseAbsPathCheck , and OpenFile_HideUseAbsPathCheck flags. Use this flag to ensure that the method returns only relative pathnames or simple filenames.
- OpenFile_UseSequenceFileFilters –(Value: 0x800) Specifies to add the file extensions for the loaded sequence file translators to the list of file types the Open File dialog box can select.