I have a chart with multiple fastline series. I display a rectangle tool on the chart and update the text dynamically when a user clicks a series. Everything works fine until I deselect all but one serie in the ChartListBox,
then the text disappears from the rectangle tool. Though when doubleclicking the tool to edit the text, the text is there in the editbox. Also when changing the text in the tool by clicking another point on the remaining serie you see it resizing. Only no text can be seen. When reselecting a second serie in the ChartListBox the text is there again.
The code I use to create the rectangel tool:
Code: Select all
this.m_resultAnnotation = new Steema.TeeChart.Tools.RectangleTool();
this.m_resultAnnotation.AllowDrag = true;
this.m_resultAnnotation.AllowEdit = true;
this.m_resultAnnotation.AutoSize = true;
this.m_resultAnnotation.Shape.Transparency = 50;
this.m_resultAnnotation.Text = text;
this.m_resultAnnotation.Position = Steema.TeeChart.Tools.AnnotationPositions.RightTop;
this.m_resultAnnotation.Shape.Shadow.Visible = true;
this.m_resultAnnotation.Cursor = Cursors.Hand;
this.tChart1.Tools.Add(this.m_resultAnnotation);
I'm using Teechart version 3.5.3371.26405