Home Forums General XMetaL Discussion Change window title Reply To: Change window title

Derek Read

Reply to: Change window title

Is it possible to set the window title (through a customization) to something else then the default (e.g. the value of an element or attribute)? By default the window title is set to the file name of the XML file.

Yes, you can do this. The API to set in your script is the Document.Title property. The simplest such script that will do this is documented in the XMetaL Developer Programmer's Guide as follows:

ActiveDocument.Title=”A new title”;

That will set the text that appears for the current document in the XMetaL Author's title bar.

…and to answer ghkrause's additions:
Setting the value for Document.Title also changes what appears on the tab for each document as well. You still cannot modify the tooltip text that appears when you hover over a tab though. That will still report full path to the file.

Reply

Products
Downloads
Support