Drawlines Again....
Posted: Wed Feb 03, 2010 12:52 pm
Sorry! I created a sample application for testing and I know that the answer to the question below is in fact yes - as I suspected! I will have to try and determine what has gone wrong in my production code.......
---------------------------------------------------------------------------------
Hi There
I pretty much have got to a point where the drawlines are doing what I want, but now I have encountered an unexpected problem.
Is it possible to have different drawlineitem objects in the drawline.lines collection draw with different colours? For example I want to make some of the lines green and some of the lines red?
Currently it always redraws all the lines with the same colour (whichever I specify last). For example if I have three drawlineitems in a drawline.lines collection, all three are green. I then want to make the second line red. This code:
mydrawline.lines.item(1).pen.color = color.red
causes all three lines in mydrawline to turn red.
Thanks
---------------------------------------------------------------------------------
Hi There
I pretty much have got to a point where the drawlines are doing what I want, but now I have encountered an unexpected problem.
Is it possible to have different drawlineitem objects in the drawline.lines collection draw with different colours? For example I want to make some of the lines green and some of the lines red?
Currently it always redraws all the lines with the same colour (whichever I specify last). For example if I have three drawlineitems in a drawline.lines collection, all three are green. I then want to make the second line red. This code:
mydrawline.lines.item(1).pen.color = color.red
causes all three lines in mydrawline to turn red.
Thanks