Home Forums General XMetaL Discussion XMetaL 9 tab customizations Reply To: XMetaL 9 tab customizations

Derek Read

Reply to: XMetaL 9 tab customizations

OK, 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]

//this is just an example and you would need to put your own logic in here
//depending on what you want to display
var strDocTitle = ActiveDocument.Name.substr(0,10);
ActiveDocument.Title = strDocTitle; ]]>

//this is just an example and you would need to put your own logic in here
//depending on what you want to display
var strDocTitle = ActiveDocument.Name.substr(0,10);
ActiveDocument.Title = strDocTitle; ]]>

[/code]

Reply

Products
Downloads
Support