Page 1 of 1

Rectangle Tool position issues

Posted: Thu Aug 07, 2008 9:42 am
by 13049497
Hello,

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);
Bye.

Re: Rectangle Tool position issues

Posted: Thu Aug 07, 2008 2:42 pm
by Chris
Hello,
AIS wrote: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.
Yes, this is a defect which I've added as number TF02013318 to our bug-tracking software. This defect has already been fixed and will be included in the next teechart.net v3 maintenance release, due out within the next five working days.