Copyright: Copyright © MMB


Contents
How to create a custom Template

Templates are just normal mbd files in the directory Template.

The difference between loading a mbd file and creating new project using template is:

Template doesn't change the file name, the project is still Untitled, until you save it under some name

You can define customized text for some Buttons, Text objects and Paragraph text and the Template Wizard will ask you to fill up these objects before creating the new document. This will save you time if you want to for example put the company name on all pages. The wizard will ask you only once and then it will change it in all places.

See how to create customized objects for the Template Wizard.


Wizard objects
How to create customized objects for Template Wizard

The Template wizard can ask few questions before creating new document, like for example "Enter the company name" and then it will replace the objects text.

For exmple we would like to have on each page of our new template a company name. Normally we would put a Text Object on each page with the text for example My Comany. But we would like to make this text object part of the Wizard.

We can write:

<COMP>Enter the name of the company:|My Company

Then on each other page we would just put only <COMP> in the text.

Continue >


Command Syntax

The syntax is following:

<MARK>Question for the Wizard|Default text

MARK

This is the identifier. All object sharing the same text must have the same MARK.The wizard will ask you only for the first time the it find MARK, the rest of the objects with the same MARK will be replaced automaticaly.

Objects which doesn't share the same text must have different MARK. This could be anything you want.

There are 2 special reserved marks.

Question for the Wizard

That's the question Template wizard will ask you to fill the Text

Default Text

This is the text which will appear in the edit box of the Wizard as default.

The character delimiter between the Question and the default text is |, That's the character usualy on the Key Shift \

Examples, (this you wrote in the text place of the text object):

<COMP>Enter the Company name:|My Company

On other pages we can just use only

<COMP>

Without the question and default text.

<TEL>Enter your telephone number|(xxx) 000-0000

Continue >


Multi Line edit

If you want the wizard to show Multi-line edit box instead of single line you need to put just more lines in the Text field of the Text Object.

For example:

<ADD>Please enter the company address:|123 Meadow Street

222 7B Glouchester

New Zeland

The Wizard will automaticaly show multi line edit box for this field.

Continue >


Multi Line Question

You can make the question appear on few more lines in the Template Wizard. You just use \n as the line end.

Example:

<COMP>Please enter the company name.\nThis name will appear on all pages.|My Company

On the wizard it will appear like this:

Please enter the company name.

This name will appear on all pages.

My Company


Special MARKs
There are two special marks, which change name and on the same time modify the property:

<EMAIL>

<HTTP>

Example:

Create a text object which will be the web address. Enable Actions. Select the External Commands and Page Actions and select Browse Web. You can put any web addres you like. Now go back and in the object text you write:

<HTTP>Enter the company web address|www.mycompany.com

Because you wrote the mark <HTTP> The Wizard will also change the Browse Web command to that address.

You can use more  <HTTP> or <EMAIL> marks just adding some numbers or characters:

<HTTP1>

<HTTP2>