General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Finding macro
-
tharpa March 10, 2016 at 4:39 pm
Finding macro
March 10, 2016 at 4:39 pmParticipants 2Replies 3Last Activity 6 years, 11 months agoI 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:
[code]
[/code]How do I find the macro code?
XMetaL 7.
Derek Read March 10, 2016 at 10:24 pm
Reply to: Finding macro
March 10, 2016 at 10:24 pmThe 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:
“Ctrl+Alt+S”
“SourceDocumentNavigate”Derek Read March 10, 2016 at 10:27 pm
Reply to: Finding macro
March 10, 2016 at 10:27 pmAs 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 -
AuthorPosts
- You must be logged in to reply to this topic.