alternatingRowBackColor

Type: Integer

Availability: Read or write at any time

The alternatingRowBackColor property of the ListBox control (and the JadeTableSheet class) specifies an alternate row background color. By default, alternating list box entry and table rows have a background color of Azure. When you set this property to a value other than Azure, the specified value is used as the default background color of each alternate non‑fixed row.

If the value of the alternatingRowBackColorCount property is 2, the first, third, and so on, list box entry and non‑fixed row default background color is the backColor property value of the list box or table sheet. The second, fourth, and so on, list box entry and non‑fixed row default background color is the alternatingRowBackColor property value when it is not the default value (otherwise the backColor property value of the list box or sheet is used).

If the value of the backColor property of a list box entry, cell, row, or column is specifically set and it is not #800000000 (that is, transparent), the default value of the entry or cell is ignored and the specific value of the backColor property is used.

When a list box entry or cell is drawn, the backColor property value is overridden by any specified backColor value set for that list box entry, cell, its row, or its column.

Note that when the list box or table is scrolled, the colors do not move with a row. The color scheme is applied to the rows, starting with the first visible non‑fixed row; for example:

table1.accessSheet(1).alternatingRowBackColorCount := 2;
table1.accessSheet(1).alternatingRowBackColor := Azure;
listbox1.alternatingRowBackColorCount := 3;
listbox1.alternatingRowBackColor := DarkGray;

2018.0.01 and higher