zebra style for table widget

Discussion about recent product features & solutions!
2 posts • Page 1 of 1
mweber
Posts:42
Joined: Mon Aug 02, 2010 11:23 am

zebra style for table widget

Post by mweber »

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

aorange
Posts:147
Joined: Thu Nov 04, 2010 10:07 am

Re: zebra style for table widget

Post by aorange »

Nice feature, I need to try this on some of very big tables I have in our project..

2 posts • Page 1 of 1