Dial_SetDialogTitle |
Sets the default dialog title for the title bar of dialogs.
Syntax
Dial_SetDialogTitle ( switches ; dialogTitle )
Parameters
dialogTitle | the title of the dialog that you want to use for all subsequent dialogs |
Returned Result
Data type returned
Error code
Result
An error code. Currently the plug-in always returns 0.
Originated in
Troi Dialog Plug-in 2.1
Compatibility
FileMaker Pro 16 to 19
Considerations
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.
Example
Dial_SetDialogTitle ( "-Unused" ; "Troi's Dialog Demo Solution" )
This will set the title of subsequent dialogs to “Troi’s Dialog Demo Solution”.
Example 2
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.
Used in example file
Input.fmp12
Related functions
Dial_BigInputDialog |
Dial_Dialog |
Dial_InputDialog |
Dial_ListDialog |
Related topics
Troi Dialog Plug-in online help (overview)