Creating User-defined ControlBar Templates

Description

Templates can be used to create ControlBars in applications. The Save ControlBar as a Template link on the Home tab of the ControlBar is used to create user-defined templates.

Discussion

Any ControlBar can be saved as a user-defined template using the Save ControlBar as a Template link in the ControlBar Builder. User-defined templates will be listed when the Load Sample ControlBar hyperlink is clicked on the Home pane of the ControlBar builder.

images/cbtemplate1.gif

To save the toolbar that you are currently editing in the ControlBar builder as a template, click the Save ControlBar as a Template hyperlink on Home pane of the ControlBar builder.

The dialog shown below will be displayed where you can give the template a name and a description. The description can use HTML markup.

images/cbtemplate2.jpg

After you have saved the template, you can save an image of how the ControlBar looks. The image filename that you must use is shown in the next dialog.

When you use the Load Sample ControlBar command the image you have saved will be shown in the list of available templates, making it easier to choose the template you wish to use.

images/cbimage.jpg