General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Change window title
-
kiwi December 1, 2008 at 1:17 pm
Change window title
December 1, 2008 at 1:17 pmParticipants 1Replies 2Last Activity 14 years, 3 months agoIs 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!
ghkrause December 1, 2008 at 2:05 pm
Reply to: Change window title
December 1, 2008 at 2:05 pmThat 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, [u]you cannot change anything [/u] regarding the tabs. 🙁
Hope this will change some day.Derek Read December 2, 2008 at 1:41 am
Reply to: Change window title
December 2, 2008 at 1:41 amIs 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. -
AuthorPosts
- You must be logged in to reply to this topic.