Removing Unused Files

When you create your macro pages, you will most probably try out different templates from various libraries. You will add various bitmaps that you want to try out as background images, etc. Every time that you add an element or a template to the macro page, the templates and resources are automatically added to the Templates Tree and the Resources Tree. All these will remain in your macro page file, even if they are not used on the macro page. Therefore, the Macro Page Designer allows you to automatically remove any unused template or resource files from the macro page.

  • To remove unused templates, open the Templates Tree context menu and select Remove Unused Templates.

    The Macro Page Designer verifies whether the existing templates are referenced by elements on the macro page or by templates that are used on the macro page. The templates that are not used are moved to the Trash folder in the Templates Tree, where you can delete them.

  • To remove unused resources, open the Resources Tree context menu and select Remove Unused Resources.

    The Macro Page Designer verifies whether the existing resources are referenced by any controls on the macro page or by a template. The resources that are not used are moved to the Trash folder in the Resources Tree, where you can delete them.

Note

To perform both these cleanup operations at the same time, use the Templates Tree context menu command Remove All Unused Templates And Resources.

Important

These cleanup functions can be performed without any risk if all templates and resources are directly linked to the macro page. However, there are certain limits. For example, when you are using a template that references a string variable that itself is controlled by another parameter, it is not possible for the cleanup function to determine that this template is used and it will be moved to the Trash folder. To prevent this, activate the Protected button in the Properties section for the template. This excludes the template from cleanup.