GetFileName GetFileSaveDlgTitle

GetFileOpenDlgTitle


The GetFileOpenDlgTItle function returns the current title used for Open dialogs.

Syntax

sTitle = GetFileOpenDlgTItle()

Remarks

This command is normally used with the companion SetFileOpenDlgTitle method for manipulating the title of the Open dialog to tune it to specific cases.

Example

This script sets the dialog title on 2 occasions, then restores it to the default.

sOldTitle = GetFileOpenDlgTItle()

-- fetch the original title

SetFileOpenDlgTitle("Save Image 1")

-- set a new title

sName1 = GetFileName()

-- uses the new title

  ...

 

SetFileOpenDlgTitle("Save Image 2")

-- change the title again

sName2 = GetFileName()

-- uses the second title

  ...

 

SetFileOpenDlgTitle(sOldTitle)

-- restore the original title

Related Topics

SetFileOpenDlgTitle, SetFileSaveDlgTitle, GetFileName