FILE DIALOG EXTENSION: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
MikeO (talk | contribs)
No edit summary
ConnerO (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


{{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=File type description
|param1=<description>|param1_desc=File type description

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