Rectangle Tool position issues

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
AIS
Newbie
Newbie
Posts: 70
Joined: Wed Jun 25, 2008 12:00 am

Rectangle Tool position issues

Post by AIS » Thu Aug 07, 2008 9:42 am

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.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Re: Rectangle Tool position issues

Post by Christopher » Thu Aug 07, 2008 2:42 pm

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.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply