SetFileSaveDlgTitle


The SetFileSaveDlgTitle function changes the title of all subsequent Save As dialogs. The change persists until the function is called again or the script ends.

Syntax

SetFileSaveDlgTitle( sTitle )

where

    sTitle is a string to be used as the new title.

  

Before setting the title using this method, is may be useful to fetch the current title using the companion GetFileSaveDlgTitle. This allows the dialog title to be restored. For example, you may specify the type of file to open in the dialog title during one use, then restore the title to "Save" afterward.

Example

The following script sets the dialog title.

SetFileSaveDlgTitle("Save Image 1")

-- set a new title

sName1 = GetFileName()

-- use the new title

  --

 

SetFileSaveDlgTitle("Save Image 2")

-- change the title

sName2 = GetFileName()

-- use the second title

Related Topics

GetFileSaveDlgTitle

GetFIleOpenDlgTitle

GetFileName