FILE DIALOG EXTENSION: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
{{Command|syntax=FILE_DIALOG_EXTENSION <description>, <extension> | {{Command|syntax=FILE_DIALOG_EXTENSION <description>, <extension> | ||
|description= | |description=Define what type of files can be used with a file dialog that has been created using [[FILE_DIALOG_NEW]].<br> | ||
Use multiple FILE_DIALOG_EXTENSION commands, one for each type of file. | |||
|param1=<description>|param1_desc=File type description | |param1=<description>|param1_desc=File type description | ||
Revision as of 21:34, 13 August 2010
Command
- FILE_DIALOG_EXTENSION <description>, <extension>
Define what type of files can be used with a file dialog that has been created using FILE_DIALOG_NEW.
Use multiple FILE_DIALOG_EXTENSION commands, one for each type of file.
Parameters
- <description>
- File type description
- <extension>
- File type extension
Example
- FILE_DIALOG_EXTENSION "Text files (*.txt)", "txt"
- FILE_DIALOG_EXTENSION "All files (*.*)", "*"
- For an example macro see Get_Op_Tool_Path Print_Geo_Data_To_File Run_Post