Home Forums General XMetaL Discussion How to load template in xmax Reply To: How to load template in xmax

Derek Read

Reply to: How to load template in xmax

You will need to create your own “New From Template” button or menu item in your UI. When the user selects this it will run a script similar to what you run when the user clicks your “Open” button or menu item, but instead of letting the user browse for a file to open it will either open a file you consider to be a template, let the user select from one or more files you consider to be a template, or build one from a string.

If you are letting people open an XML file as the template you may wish to have additional logic that does not allow the user to save the file back to the same location (overwriting the template). We do not restrict that in XMetaL Author — users are free to save XML documents into the Template folder in that product, which allows them to make their own templates.

Reply

Products
Downloads
Support