Attributes and controls of a browsing Looper control in WinDev or WinDev Mobile
A Looper control includes controls that are repeated on each row.
When creating a browsing Looper control, a control is created for each item found in the data file or in the query.
To modify one or more characteristics of these controls (color, status, width, height, ...), all you have to do is handle these controls by programming in the "Displaying a row of the Looper control" process.
For example, the Looper control named "LOOP_MyLooper" is based on "Customer" file. This data file contains 10 items (name, address and phone number of each customer for example). When creating the Looper control, 10 controls will be automatically created: each control will be linked to an item of "Customer" file.
In order for the background color of the "EDT_CustomerName" control to change on each row, this control must be handled by programming to define the requested background color. For example:
// -- Displaying a row of LOOP_MyLooper
// Retrieve the subscript of the current row
// The background color will be red for the even rows
// The background color will be blue for the odd rows
Note: For compatibility with WebDev, you also have the ability to use the attributes.