FILE DIALOG EXTENSION: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[:Category:Miscellaneous|{{Up}}]] | |||
{{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]]. | ||
:Use multiple FILE_DIALOG_EXTENSION commands, one for each type of file. | |||
|param1=<description>|param1_desc= | |param1=<description>|param1_desc=File type description | ||
|param2=<extension>|param2_desc= | |param2=<extension>|param2_desc=File type extension | ||
}} | }} | ||
===Example=== | ===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]] | |||
[[Category:Miscellaneous]] | [[Category:Miscellaneous]] | ||
Latest revision as of 15:01, 19 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