SetFileOpenDlgTitle
The SetFileOpenDlgTitle function changes the title of all subsequent Open dialogs. The change persists until the function is called again or the script ends.
SetFileOpenDlgTitle( 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 GetFileOpenDlgTitle. 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 "Open" afterward.
This script sets the dialog title on 2 occasions, then restores it to the default.
|
-- fetch the original title |
|
-- set a new title |
|
-- uses the new title |
-- |
|
|
-- change the title again |
|
-- uses the second title |
-- |
|
|
-- restore the original title |