General XMetaL Discussion
tharpa March 10, 2016 at 4:39 pm
Finding macroMarch 10, 2016 at 4:39 pmParticipants 2Replies 3Last Activity 6 years, 3 months ago
I am maintaining a legacy application. We have an icon on the XMetaL toolbar that's activated with Ctrl+Alt+S. I have found the .tbr file, and the button definition is:
How do I find the macro code?
XMetaL 7.Derek Read March 10, 2016 at 10:24 pm
Reply to: Finding macroMarch 10, 2016 at 10:24 pm
The macro will be inside an MCR file located in one of three possible locations:
- The same folder as the DTD or XSD file associated with this particular document type — it will have the same filename as the DTD or XSD and a “.mcr” extension.
Macros — it will have the same filename as the DTD or XSD and a “.mcr” extension. Startup — the filename could be anything, the extension will be “.mcr”
Either open each MCR file from each location and search within them or use a tool with cross-file searching (Visual Studio, Notepad++, or many others) to search for one of the following in all MCR files in those locations:
“SourceDocumentNavigate”Derek Read March 10, 2016 at 10:27 pm
Reply to: Finding macroMarch 10, 2016 at 10:27 pm
As you seem to be new to working with XMetaL customizations I highly recommend reading the following:
XMetaL Customization Guide
XMetaL Programmers Guide
This slide deck from a presentation I gave on how software locates customization files: http://www.slideshare.net/XMetaL/deploying-schemas-and-xmetal-customization-files
- You must be logged in to reply to this topic.