if i add an rectangletool in the designer to the tchart and than change the position, the designer wouldnt write my changes to the designer code after a few changes. Also the position "LeftTop" is the one and only where i can drag & drop the annotation. All other postions avoid this. In custom mode position the tool is able to drag & drop.
Example:
Code: Select all
Steema.TeeChart.TChart chart = new Steema.TeeChart.TChart();
chart.Dock = DockStyle.Fill;
this.Controls.Add(chart);
Steema.TeeChart.Tools.RectangleTool rec1 = new Steema.TeeChart.Tools.RectangleTool();
Steema.TeeChart.Tools.RectangleTool rec2 = new Steema.TeeChart.Tools.RectangleTool();
Steema.TeeChart.Tools.RectangleTool rec3 = new Steema.TeeChart.Tools.RectangleTool();
Steema.TeeChart.Tools.RectangleTool rec4 = new Steema.TeeChart.Tools.RectangleTool();
rec1.Position = Steema.TeeChart.Tools.AnnotationPositions.LeftTop;
rec2.Position = Steema.TeeChart.Tools.AnnotationPositions.LeftBottom;
rec3.Position = Steema.TeeChart.Tools.AnnotationPositions.RightBottom;
rec4.Position = Steema.TeeChart.Tools.AnnotationPositions.RightTop;
rec1.Text = "work";
rec2.Text = "doesnt work";
rec3.Text = "doesnt work";
rec4.Text = "doesnt work";
chart.Tools.Add(rec1);
chart.Tools.Add(rec2);
chart.Tools.Add(rec3);
chart.Tools.Add(rec4);