PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview of Linear Looper control
  • Page control
  • Attributes of a linear looper
  • Creating a linear looper
  • Vocabulary
  • Notes
  • Operations in AJAX
  • Link of the Linear Loopers
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
Overview of Linear Looper control

Page control

A linear looper is used to display a set of controls in an horizontal scrolling list.
The Linear Looper control is used to harmoniously display a menu with images for example.
The information displayed in the linear looper can:
  • be defined by programming: we talk of Memory Linear Looper
  • come from a data file or from a query: we talk of Browsing Linear Looper.
  • come from a WLanguage variable: we talk of Linear Looper on source
Note: The Linear Looper control shares a lot of characteristics with the Looper control. It is specifically intended to display a small number of elements in order to propose a nice viewing.
Attributes of a linear looper
A linear looper includes:
  • controls, that are repeated on each row.
  • attributes. An attribute is used to define the control characteristic that will be modified on each row. For example, if the value and the color of the PRICE control must change on each row, you will have to define two different attributes for the same control.
To find out or modify the characteristic of a control (its value, its color, ...), all you have to do is handle this control or the corresponding attribute by programming.
Creating a linear looper
To create a Linear Looper control:
  1. In the page editor, click Icon of Linear Looper (or select "Insert .. Control .. Linear looper").On the "Creation" pane, in the "Data" group, expand "Looper" and click "Linear looper".
  2. Click the position where the control will be created in the page. The wizard for creating a Linear Looper control is automatically started.
To display the control characteristics, select "Description" from the popup menu of control. Two types of information can be viewed:
  • the information regarding the entire looper (all you have to do is select the looper name).
  • the information regarding each looper attribute (all you have to do is select the name of a looper attribute).
Vocabulary
To easily handle a linear looper, you must be familiar with the following vocabulary:
NameDefinition
AttributeAn attribute corresponds to a value that can be modified for each element of the linear looper.
An attribute can be linked to a property of a control found in the linear looper to make this property change in each column of the linear looper.
For each attribute, you must define:
  • the name of the attribute.
  • the name of the control found in the linear looper linked to the attribute.
  • the property of the control corresponding to the attribute (value, color, ...).
Browsing horizontal looperThe browsing linear looper is based on a data file or on a query. A record found in the data file is displayed on each row. Two types of browsing linear loopers are available:
  • Browsing linear looper "Loaded in memory": the content of the linear looper is loaded in memory then it is displayed. The access to the different elements of the linear looper is faster. This mode is reserved for the data files containing less than 100 000 records.
  • Browsing linear looper in "Direct access mode (no limit)": The linear looper directly displays the content of the data file or the content of the query. The current record corresponds to the selected element. Each move performed in the linear looper involves an access to the linked data file. This type of linear looper is reserved for the data files containing more than 100 000 records.
Memory horizontal looperThe linear looper is not based on a data file or on a query. The elements displayed in the linear looper are defined by the developer (by programming)
Horizontal looper on sourceThe linear looper is based on a variable (global to the project, to the page, class member, ...).
Notes

Operations in AJAX

The linear loopers cannot be modified in AJAX (addition or deletion of elements).
However, their content can be read from a function or from a process in AJAX mode. Similarly, the processes of the controls found in the linear looper can be in AJAX mode.

Link of the Linear Loopers

Related Examples:
The Linear Looper control Unit examples (WEBDEV): The Linear Looper control
[ + ] This example explains how to use the "Linear Looper" control of WEBDEV.
The "Linear Looper" control is used to create some graphic menus for example.
Minimum required version
  • Version 15
Comments
Click [Add] to post a comment