To create a custom control that you can then insert into web pages:
- Click Controls in the Web Designer Catalog.
- Right-mouse-click the type of control that you want to make a custom variant of, and choose New. A new control class is added. In the example, "DIV- New” has been added in this way as a custom control class:
3. Rename the custom control if you like, and set properties for it that make it special in comparison with the parent control class.
- You can now add the custom control to one or more pages. Do this by inserting your custom control into an object of a Page class: open the Page class, then drag the custom control class from the Controls tab onto the place where you want to insert it in the object tree on the right.
This technique gives you optimal re-use of specification work, but if you use the control class in multiple pages, and you change the custom control later, you do NOT get warnings about the consequences for all the pages you used it in.