Sets the default dialog title for the title bar of dialogs.
Dial_SetDialogTitle ( switches ; dialogTitle )
|dialogTitle||the title of the dialog that you want to use for all subsequent dialogs|
Data type returned
An error code. Currently the plug-in always returns 0.
Troi Dialog Plug-in 2.1
FileMaker Pro 15 to 19
The title will stay the same for all following dialogs until you change it again or restart FileMaker. If you add this function to your startup script, all dialogs with a title bar will show the title you’ve given.
Dial_SetDialogTitle ( "-Unused" ; "Troi's Dialog Demo Solution" )
This will set the title of subsequent dialogs to “Troi’s Dialog Demo Solution”.
We assume that in your FileMaker file the following fields are defined:
gDialogTitle Global, text gResult Global, text
Add the following script step:
Set Field [ gResult ; Dial_SetDialogTitle ( "-Unused" ; gDialogTitle ) ]
This script will use the contents of the global text field to set the dialog title.