PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Creating a pattern
  • Modifying an existing pattern
  • Structure of RAD patterns
  • View mode
  • Skin-template mode
  • Edit mode of controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 12, the pattern editor is kept for backward compatibility. The menu options for creating a RAD pattern are not available anymore.
However, you have the ability to modify an existing RAD pattern (to do so, Drag and Drop the pattern into the editor).
In version 12, the RAD was entirely revamped. See New RAD patterns for more details.
Overview
The pattern editor (or custom RAD pattern) simplifies the creation of MLD and MDE files used by the RAD patterns.
You can:
  • create a new pattern
  • modify an existing pattern
The RAD patterns supplied with the product can be customized.
How to proceed?

Creating a pattern

To create a new pattern, select "Workshop .. Custom RAD pattern .. Create a RAD pattern".
A wizard helps you create the pattern. You must specify:
  • The name, title and description of the pattern
  • The classes and the sets of procedures used
  • The file group: simple, shared or complex. This allows you to define the number of linked files for which the pattern is suited.
  • Whether queries can be used with the pattern
Note: This information can be accessed and modified in the description window of the RAD pattern.
At the end of the wizard, the window of the RAD pattern is displayed in the window editor.

Modifying an existing pattern

To modify an existing pattern, select "Workshop .. Custom RAD pattern .. Open a RAD pattern...".
You can now select the .MDL file corresponding to the RAD pattern. These files must be found in specific directories:
  • for a custom RAD pattern that was created by yourself:
    ..\Setup directory of WINDEV\Personal\Patterns\RAD
    ..\Setup directory of WEBDEV 18\Personal\Patterns\RAD
  • for a standard RAD pattern that must be modified:
    ..\Setup directory of WINDEV\Programs\Data\Patterns\RAD\WD
    ..\Setup directory of WEBDEV 18\Programs\Data\Patterns\RAD\WD
Structure of RAD patterns

View mode

The RAD pattern is divided into two distinct parts:
  • The skin-template mode (or edit mode of areas), used to define the visual layout of the window (UI).
  • The edit mode of controls, used to create controls and to enter their source code.
To switch from a mode to the another one, select "Display .. Skin-template mode" or press [ALT]+[G].
The skin-template mode is enabled if the menu option is checked.

Skin-template mode

The skin-template mode is used to define the different areas of the skin template:
  • form area: this area contains the controls
  • table area: this area contains the tables
  • button area: this area contains the buttons
To define these areas, double-click the window to edit the description of the skin template.
The Pattern tab of the description window of the skin template is used to define:
  • the name and type of the areas. You can:
    • add an area
    • delete an area
  • the links of the files associated with the pattern. The number of "Link" tabs depends on the type of the file group that is associated with the pattern:
    • a "Link" tab for a simple link (a single file)
    • two "Link" tabs for a shared link or for a complex link (two or three linked files)
  • the anchors and the groups
To access the information entered when creating the RAD pattern, click the "Description" button found in the "Pattern" tab of the description window of the skin template.
The description window of the pattern is also used to define the style book for the pattern.
The Controls tab of the description window of the skin template is used to define:
  • the control name
  • the type of the control
  • the anchor of control
  • the associated area to which the control belongs
The Layout tab of the description window of the skin template is used to define:
  • the position of button area (right, left or bottom)
  • the coordinates of the areas
  • the size of the areas
  • the anchor of the areas

Edit mode of controls

The edit mode of controls is used to:
  • create the controls (especially the buttons) in the areas that have been defined.
  • enter or modify the code that will be generated
The creation of controls and the access to the code of the pattern elements is done in the same way as for a standard window.
See Programming the patterns for more details.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment