Pages: 1
Print
Author Topic: Change window title  (Read 2950 times)
kiwi
Member

Posts: 1


« on: December 01, 2008, 07:17:47 AM »

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.

Thanks!
Logged
ghkrause
Member

Posts: 62


« Reply #1 on: December 01, 2008, 08:05:54 AM »

That would be great if we could redefine the content displayed in the tab not to be the filename!
The other improvement would be a customizable width of the tab itself. All options I want to show in the tab needs more space. The full path text displayed with mouseover tab I would like to adapt, too.
The last answer from 2007 was: no, you cannot change anything regarding the tabs. :-(
Hope this will change some day.
Logged

Gunnar H. Krause, TechDoc Manager, Nuremberg Area, Germany
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1550



WWW
« Reply #2 on: December 01, 2008, 07:41:41 PM »

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.
Logged
Pages: 1
Print
Jump to:  

email us