|
|
|
|
|
- Overview of the supercontrol
- Examples
Overview of the supercontrol 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 is hosting them. Advantage of supercontrols: supercontrols are independent elements that can be easily reused, regardless of the window or page in which 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 fields form a supercontrol field. In this example, the button is used to automatically calculate the end date according to the period chosen in the context menu of the button.
Two types of users are allowed to handle a supercontrol: - The creator of the supercontrol: the person who designs the supercontrol and the functionality it is to provide. For more details, see: Creating a supercontrol.
- The supercontrol user: the person who will integrate the supercontrol into their window (or page) and manipulate it programmatically. For more details, see: Including a supercontrol in a window.
A supercontrol can include: - All types of controls, with all their characteristics (context 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.
- Some variables local to the supercontrol and that can be used by all the processes associated with the supercontrol or with one of its elements.
Remark: It is possible to create a supercontrol with a single field: this will allow you to define local procedures for this field. Several examples of supercontrols are provided with WINDEV, WEBDEV and WINDEV Mobile. These supercontrols can be accessed from the "Preset controls" pane.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|