Now whenever you change the company, the Title Bar will be modified. You can add code to retrieve eg. the databasename/servername and display this as well.
This code works on Navision 3.70/4.0. For 3.60, you have to change "Microsoft Business Solutions - Navision" to "Microsoft Navision Attain".
Other option:
Context := CONTEXTURL;
ServerName := COPYSTR(Context,STRPOS(Context,'servername=')+11); // Delete the "prefix"
ServerName := DELSTR(ServerName,STRPOS(ServerName,'&')); // Delete trailing p.
DatabaseName := COPYSTR(Context,STRPOS(Context,'database=')+9); // -do-
DatabaseName := DELSTR(DatabaseName,STRPOS(DatabaseName,'&')); // -do-