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 control
  • Creating a Linear Looper control
  • Vocabulary
  • Notes
  • Operations in AJAX
  • Link of Linear Looper 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
Overview of Linear Looper control

Page control

A Linear Looper control 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 control can:
  • be defined by programming: this is referred to as memory Linear Looper control.
  • come from a data file or from a query: this is referred to as browsing Linear Looper control.
  • come from a WLanguage variable: this is referred to as Linear Looper control on source.
Note: The Linear Looper control shares numerous 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 control
A linear Looper control 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 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 control
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 control (all you have to do is select the name of Looper control).
  • the information regarding each attribute of Looper control (all you have to do is select the name of an attribute in the Looper control).
Vocabulary
To easily handle a Linear Looper control, you must be familiar with the following vocabulary:
NameDefinition
AttributeAn attribute corresponds to a modifiable value for each element of the Linear Looper control.
An attribute can be linked to a property of a control found in the Linear Looper control to make this property change in all the columns.
For each attribute, you must define:
  • the attribute name.
  • the name of the control in the linear looper that is linked to the attribute.
  • the property of the control corresponding to the attribute (value, color, ...).
Browsing linear looperThe Linear Looper control 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 Linear Looper control is loaded in memory then it is displayed. The access to the different elements of the Linear Looper control 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 control displays the content of the data file or query directly. The current record corresponds to the selected element. Each move performed in the Linear Looper control involves an access to the linked data file. This type of Linear Looper control is reserved for the data files containing more than 100 000 records
Memory linear looperThe Linear Looper control is neither based on a data file nor on a query. The elements displayed in the Linear Looper control are defined by the developer (by programming).
Linear Looper on sourceThe Linear Looper control is based on a variable (global to the project, to the page, class member, etc.).
Notes

Operations in AJAX

Linear Looper controls 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 displayed by the Linear Looper control can be in AJAX mode.

Link of Linear Looper controls

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