5. Creating Basic Frames : Alternative Methods for Creating Frames : Create Your Own Frame Templates
 
Share this page                  
Create Your Own Frame Templates
Every OpenROAD frame that you create is based on a frame template that determines many of the visual and behavioral characteristics of the frame. OpenROAD provides templates for the basic frame types and more complex templates as seen in Generating Frames from Predefined Templates (see Generating Frames from Predefined Templates).
You also can create your own frame templates in the following ways:
Save the working copy of a frame as a frame template by clicking File, Save As New Template on the Frame Editor's floating menu bar
Create a frame template as an application component in Workbench
The following is the Develop tab, Components portlet toolbar icon to open the Create Frame Template dialog:
To create a frame template as an application component
1. Click in the Components portlet of the Develop tab.
2. Click File, New, Frame Template.
The Create Frame Template dialog appears, letting you specify the basic properties for a new frame template. This dialog is similar to the Create User Frame dialog (see Frame Editor), except it includes an Assistant field where you can enter the name of an assistant, if available.
Note:  For more information about frame template properties, see How You Can Set Frame Template Properties.
3. Enter the frame template name in the Name field (for example, My_Frame_Template).
4. (Optional) Enter a comment for the component in the Remark field.
5. Select an application and template from the Application and Template fields, respectively.
For example, if you want to create a frame template for a standard Confirmation dialog, accept the default Core application library and then select the dialog_box template.
6. Click Create.
The Frame Template Editor opens, containing the default frame template you specified.
Note:  Most of the features of the Frame Editor (see Frame Editor) described previously also apply to the Frame Template Editor.
7. Design the form, set its properties, and write the script for the frame template as you would for any frame.
For example, you could add a free trim field with the following standard text: Are you sure you want to delete this item? You also could include a title for this form by entering Confirmation in the value cell for its WindowTitle property.
Note:  For information about the various types of fields and how to create them and place them on your form, see Creating and Using Basic Fields (see Creating and Using Basic Fields).
8. Click File, Save and Close.
The frame template is added to the Components portlet.