"alternatingRowColors"
Allows to enable alternating row colors for a selection list / DP Baumansicht / Tree Widget.
Synopsis
shape.alternatingRowColors(bool enabled);
setValue(string shape, "alternatingRowColors", bool
enabled);
Parameter
Parameter | Description |
---|---|
shape | Name of the object. |
enabled | Enables (TRUE) or disables (FALSE) alternating row colors. If you want to change the colors that are used for the alternating row colors, you can use the "styleSheet" function. See the example below. |
Description
Enables the alternating row colors of a selection list.
Change colors for the alternating row colors via styleSheet
main()
{
this.styleSheet("background: yellow; alternate-background-color: green;");
this.alternatingRowColors(true);
}