PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • The steps for creating a RAD pattern
  • Create the different windows of the pattern
  • The files to create
  • Standard to follow
  • The menus
  • Overview
  • Drop-down menu
  • Carousel menu
  • Creating a button menu
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
Creating the menus for the windows of the WINDEV RAD pattern
The steps for creating a RAD pattern
The steps for creating a WINDEV RAD pattern are as follows:
  1. Creating the "RAD Pattern" project.
  2. Create the different windows of the pattern.
  3. Generating the RAD pattern.
  4. Using the RAD pattern.
Create the different windows of the pattern

The files to create

Reminder: To build a RAD pattern used to create a full project, the following files are required:
  • A form for RADFileA.
  • A form for RADFileB. A combo box and a Vision Plus button (or a popup combo box) must allow you to select an element of RADFileA.
  • A form for RADFileC. A combo box and a Vision Plus button (or a popup combo box) must allow you to select an element of RADFileB.
  • A table for RADFileA.
  • A table for RADFileB.
  • A table for RADFileC.
  • A relation window RADFileB/RADFileD.
These different elements must contain link buttons. You also have the ability to provide the main menu of the application.

Standard to follow

This help page presents the different rules that must be applied when creating the pages and windows of the RAD pattern. These rules have been used to create the different patterns supplied with WINDEV 16.
These rules are recommendations. You can implement and use your own standard.
The menus

Overview

Any window of your pattern can include a menu. Several types of menus are available:
  • a drop-down menu found in the first window of the application.
  • a menu in a carousel control.
  • a menu in button format.
These menus are used to open:
  • the form windows and the tables windows defined in the pattern
  • other windows found in the pattern (a window for configuring the emails, ...).
The following paragraphs explain how to create a drop-down menu, a carousel menu and a button menu.
Important: don't forget to define the first project window in your RAD pattern. In most cases, this first window corresponds to the menu window.

Drop-down menu

In most cases, the drop-down menu is included in a specific window but it can be included in any window of your pattern.
To create a drop-down menu:
  1. Create (if necessary) the window where the menu will be displayed.
  2. Create the menu ("Windows .. Main menu .. Add the main menu").Create the menu: on the "Window" pane, in the "Bars and menus" group, expand "Main menu" and select "Add the main menu").
  3. The menu options used for the specific RAD options must have a specific name: "MENUFIC_". The menu with this name will be duplicated as many times as necessary for the different files of the analysis that require a menu entry. The code associated with the options will also be duplicated and adapted (if necessary) to the file used.
The other menu options (used to start a feature included in the pattern for instance) can have any name. They will be automatically generated.
Example:
Notes:
  • You have the ability to include separators in the menu.
  • An image can be associated with the menu options. This image will not be customized by the user.

Carousel menu

To optimize the appearance of your applications, you have the ability to use a menu in the format of a Carousel control. The images scroll, allowing the user to choose a specific option.
To create a carousel menu:
  1. Create (if necessary) the window where the menu will be displayed.
  2. Create a Carousel control ("Insert .. Control ..Carousel").Create a Carousel control: on the "Creation" pane, in the "Other controls" group, click "Carousel".
  3. The carousel control used must be named "MENUCAR_".
  4. The code for selecting a line in the carousel menu can be:
SWITCH MySelf
CASE 1:
//RADSTART
Open(WIN_Table_RADFileA)
//RADEND
CASE 2:
Open(WIN_Table_RADFileB)
CASE 3:
Open(WIN_Table_RADFileC)
END
In this example, the "//RADSTART" and "//RADEND" comments are mandatory: they are used to enclose the code that will be duplicated for each file processed by RAD.

Creating a button menu

To optimize the appearance of your applications, you have the ability to use a menu in the format of a set of button controls. You have the ability to define the shape and layout of the buttons found in your menu.
To create a button menu:
  1. Create (if necessary) the window where the menu will be displayed.
  2. Create the button controls of your menu.
  3. The button controls of the menu must be named "MENUCTRFIL_", with the associated code.
For example: MENUCTRFIL_RADFileA button, with "RADFileA management" for caption, and for code:
Open(WIN_Table_RADFileA)
4. To anticipate the positioning of the menu buttons (if the number of files used during the generation is quite important for instance), you have the ability to create additional buttons. These buttons are named MENUCTR_X and they have no associated code (MENUCTR_1 for example). If these additional buttons are not created, the menu buttons will be stacked.
Minimum required version
  • Version 12
Comments
Click [Add] to post a comment