Home | Sign in | English EN
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
11. Control templates
Previous pageTable of contentsNext page
WINDEV Mobile allows you to create control templates. A control template is a set of controls that can be re-used in several windows.
The modifications performed in a control template are automatically applied to all windows that use this template.
A control template is used to:
  • group a set of controls for a specific purpose.
  • make the controls independent of the window that is hosting them.
Defining a control template.
The template is bordered by an orange line in the editor.
Using the template in a window.
The elements belonging to the template are bordered by a blue line and identified by a yellow square.

A control template can be created:
  • via the icon found in the quick access buttons. In the window for creating a new element, click "Window" then "Control template".
  • from the controls found in the window (select the controls then select "Refactoring .. Create a control template from the selection" from the popup menu).
To create a window based on a control template, create a "Control template" control.
The characteristics of elements can be dissociated from the template. For example, dissociating the position of a template control to position the control somewhere else while keeping the other evolutions performed on the control (code, style, ...). We talk of control inheritance. In this case, the elements are identified by a blue square.
Previous pageTable of contentsNext page
This page is also available for…
Click [Add] to post a comment