Home Forums General XMetaL Discussion Xmetal Toolbar macro Reply To: Xmetal Toolbar macro

Derek Read

Reply to: Xmetal Toolbar macro

If you are an author see XMetaL Author help (F1) topic “Associate a macro with a toolbar button”, or online version here:
[url=http://na.justsystems.com/webhelp/en/xmetalauthor/enterprise/7.0/XMEE.html#Associate%20a%20macro%20with%20a%20toolbar%20button]Associate a macro with a toolbar button[/url]

If you are a developer (customizing XMetaL Author for end users) please see the Customization Guide topic “Treat As” and the subsection “Toggling Elements”. No scripting is required in this case, just a CTM file change to associate those buttons with specific elements. See the online version of this topic here: [url=http://na.justsystems.com/webhelp/en/xmetaldeveloper/cg/6.0/cg.html#Treat%20As]Treat As[/url]

If you have a DTD that needs to do more with the markup than simply wrap text in an element (which is what the Treat As setting above does) then additional scripting will be required. Assuming you have written the script to create the proper markup already connecting it to those buttons is quite a bit more challenging. The recommended method is add buttons to a toolbar using the CommandBars API. The same script may also remove the existing buttons. See the Programmers Guide for information on this API.

Reply

Products
Downloads
Support