A supercontrol is an advanced type of control. A supercontrol groups a set of controls for a specific purpose. These controls are independent from the processes of the window or page that hosts them.
Benefits of supercontrols
The supercontrols are now available for the applications in Windows Store apps mode.
: the supercontrols are independent elements that can be easily reused regardless of the window or page where they are used. As they can be included in a dictionary, they can easily be transferred from a project to another one.
Example: These three controls constitute a supercontrol. In this example, the button is used to automatically calculate the end date according to the period chosen in the popup menu of the button.
Two types of users are allowed to handle a supercontrol:
- The creator of the supercontrol: person who designs the supercontrol as well as its features. For more details, see: Creating a supercontrol.
- The user of the supercontrol: person who includes the supercontrol in his window (or in his page) and who will be handling it by programming. For more details, see: Including a supercontrol in a window.
A supercontrol can include:
- All types of controls, with all their characteristics (popup menu for example).
- Specific procedures. These procedures are local to the supercontrol and they can be used by all the processes associated with the supercontrol or with one of its elements.
- Variables local to the supercontrol and that can be used by all the processes associated with the supercontrol or with one of its elements.
: A supercontrol can be created with a single control: this enables you to define procedures local to this control.