IntroductionCustom forms can be used when the standard stencils do not provide the required form look and feel. For example, a company may develop intranet applications that all share a standard header and footer. A custom form shape can be created that includes the standard header and footer.
The image below is an example of a custom form shape for a web application containing a standard header:
InstructionsTo add the custom form shape:| 1 | Capture and save an image of the application containing the required screen layout / background |
| 2 | Using a paint program (e.g. Window Paint) remove any non-standard components from the image. Save the changes. |
| 3 | Drag the “Blank form” from “stpBA GUI Components” stencil to the Visio canvas and click OK on the popup dialog. |
| 4 | Right-click the form and select “Insert Image…” and select the image that you saved. |
| 5 | Resize the form as required. The recommended maximum dimensions are 180mm width max and 210mm height max. |
| 6 | From the main menu select “File / Shapes / My Shapes / Favorites”. |
| 7 | The “Favorites” stencil is added to the stencils section. |
| 8 | Click the “Favorites” stencil. |
| 9 | Drag the new blank form shape (with the embedded image) from the Visio canvas on to the “Favorites” stencil. |
| 10 | A message appears. Select “Yes” and the stencil is put into edit mode. |
| 11 | The new shape is added to the stencil. |
| 12 | Right-click the new shape in the stencil and select “Rename Master”. |
| 13 | Enter a name for the shape, e.g. “My standard form” and press Enter. |
| 14 | Click the red asterisk in the top-left corner of the stencil. A menu appears. |
| 15 | Select “Edit Stencil” to toggle editing off. |
| 16 | A message appears. Click “Yes” to save the stencil. |
To use the custom form shape:| 1 | Start a new blank stpBA Visio document |
| 2 | From the main menu select “File / Shapes / My Shapes / Favorites”. |
| 3 | The “Favorites” stencil containing the custom form is added to the stencils section. |
| 4 | Drag the “Site map item” from “stpBA Site Map” stencil to the Visio canvas. |
| 5 | On the popup dialog drop-down the Type picklist and scroll to the bottom. |
| 6 | The new custom form will be listed as the last item in the pick-list. |
| 7 | Select the custom form from the Type pick-list |
| 9 | Enter a name in the Name field and click OK. |
| 8 | A site map item shape for the custom form is added. Also, a new Visio page tab containing the custom form shape is added. |
Note: You can use the “Favorites” stencil to reuse any components. Any changes to the stpBA extended options (e.g. business rules, custom properties, etc) will also be retained for reuse.