General XMetaL Discussion

  • kiwi

    Change window title

    Participants 1
    Replies 2
    Last Activity 13 years, 7 months ago

    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!

    Reply

    ghkrause

    Reply to: Change window title

    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, [u]you cannot change anything [/u] regarding the tabs. 🙁
    Hope this will change some day.

    Reply

    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

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support