12-07-2010 04:21 AM
Assuming that if I have an array of 20 elements, array data type can be assumed for integer or string type ,whether it is possible to change the text color of an array at run time?
The end result should be similar to this pattern : 0 to 5 elements in green, 6 to 10 elements in orange, 11 to 19 elements in Black color
Solved! Go to Solution.
12-07-2010 04:25 AM
Elements within an array share all properties except the "value". Therefore, all elements will always have the same color of the text/background, ....
You can use a table instead for this purpose, but you will have some overhead in order to create the layout you want to have (coloring, distribution, 'tables work with strings, not numbers', ....)
hope this helps,
Norbert
12-07-2010 06:14 AM
Thanks
12-07-2010 12:59 PM
Use an array of clusters; the cluster containing two elements: A color box, and the string or number. Size the two components the same, and put the color box in the back. Set the background color of the string ot number to transparent.