Bug: RectangleTool, Annotation Tool tests
Posted: Thu May 13, 2010 5:45 am
A TypeOf test on a set of chart tools wrongly passes the RectangleTool as Annotation tool. In the following piece of code, if you have an annotation tool and a rectangle tool added to a chart, when you loop over the tools to get their type, you always get AnnotationTool result. The only work around is to first test for rectangletool and then test for annotation tools.
This bug ate my whole afternoon I have latest Tchart V3 version.
This bug ate my whole afternoon I have latest Tchart V3 version.
Code: Select all
If TypeOf activeChart.Tools(toolIndex) Is Steema.TeeChart.Tools.Annotation Then
msgbox "Annotation Tool"
ElseIf TypeOf activeChart.Tools(toolIndex) Is Steema.TeeChart.Tools.RectangleToolThen
msgbox "RectangleTool"
endif