Home › Forums › General XMetaL Discussion › XMetaL 9 tab customizations › Reply To: XMetaL 9 tab customizations
Reply to: XMetaL 9 tab customizations
January 13, 2015 at 9:03 pmOK, so File_Save and File_SaveAs are probably overkill for this issue.
Instead of that you can use the following. It is slightly different coding but essentially the same result. In this case the Save() and SaveAs() methods don't need to be called since saving is not being overridden.
[code=Example — Manipulating Document Title (Tab Text) On Save and SaveAs Events]
//depending on what you want to display
var strDocTitle = ActiveDocument.Name.substr(0,10);
ActiveDocument.Title = strDocTitle;
]]>
//depending on what you want to display
var strDocTitle = ActiveDocument.Name.substr(0,10);
ActiveDocument.Title = strDocTitle;
]]>
[/code]