Page 1 of 1

Tools problems v6.0.0.5

Posted: Thu May 05, 2005 9:27 am
by 9083304
Are there known problems with the Tools collection. Eg the .Delete method appears to be buggy. I have a vertical TeeCursor and several DrawLines on my chart. I want to remove the TeeCursor. I loop through Tools collection to find index of the Tool where .tools.items(i).tooltype = 'cursor'. I then pass that index to .tools.delete i. The tool is no longer in the collection it seems but a visible line remains on the chart?! How do I get around this?

Posted: Thu May 05, 2005 10:13 am
by narcis
Hi Ross,

I've been able to reproduce what you report and solved it adding TChart1.Repaint after deleting the tool.