With the most recent patch for WinCC OA 3.10 (patch 017) we introduced a new feature for our table widget - the "zebra" style.
There is now the possibility to set alternating colors for the lines of a table.
The number of colors is not limited (e.g. for normal it would be maybe two colors but it could as well be some more - the pattern will repeat endlessly)
You could use any color definition except dynamic (blinking) colors.
At the moment it is only possible to set this attribute at runtime in a control script (like the gradient) - you will not find it at the property editor inside the GEDI.
The syntax is as follows:
shape.alternatingRowColors(dyn_string colors)
Short example for yellow / white - style:
(use this on initialize of your table widget)
dyn_string zebraCol;
zebraCol = makeDynString("{255,226,1,93}","_Window");
this.alternatingRowColors = zebraCol;
best regards
Markus Weber
zebra style for table widget
- aorange
- Posts:147
- Joined: Thu Nov 04, 2010 10:07 am
Re: zebra style for table widget
Nice feature, I need to try this on some of very big tables I have in our project..