FILE DIALOG EXTENSION: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
New page: {{Command|syntax=FILE_DIALOG_EXTENSION <description>, <extension> |description=*DESCRPTION* |param1=<description>|param1_desc= |param2=<extension>|param2_desc= }} ===Example=== :- FILE_D...
 
ConnerO (talk | contribs)
No edit summary
 
(9 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=*DESCRPTION*
|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
:FILE_DIALOG_EXTENSION "Text files (*.txt)", "txt" 
:FILE_DIALOG_EXTENSION "All files (*.*)", "*" 


[[Category:Miscellaneus]]
:For an example macro see [[Get_Op_Tool_Path]] [[Print_Geo_Data_To_File]] [[Run_Post]]
[[Category:Miscellaneous]]

Latest revision as of 15:01, 19 August 2010

Up

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