Pages: 1
Print
Author Topic: Code sample: Implementing a "text zoom" feature in XMetaL Author  (Read 989 times)
Su-Laine Yeo
Solutions Consultant
Member

Posts: 260


« on: February 10, 2010, 08:05:29 PM »

It is possible for developers familiar with knowledge of scripting to add a "text zoom" feature that will enable authors to change the size of text on-screen in XMetaL. We have an example of this in XMetaL 6.0 for documents that use the "Journalist" DTD. To see it:

1) Click Help > Samples > Cameras in Focus (Journalist).
2) Right-click in the toolbar and choose Structure View Examples.
3) If the Structure View pane is not visible, click View > Structure View.
4) Click the buttons in the Structure View Examples toolbar   to toggle between different stylesheets for the Structure View.

The buttons in this toolbar invoke a macro to change the CSS used to display the Structure View pane. The code behind it is in the journalist.mcr file in C:\Program Files\XMetaL 6.0\Author\Macros . You are free to copy this code for any other XMetaL customization.
« Last Edit: February 10, 2010, 08:11:39 PM by Su-Laine Yeo » Logged

Su-Laine Yeo
Solutions Consultant
JustSystems Canada, Inc.
Pages: 1
Print
Jump to: