selector tool and zoom rectangle

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
history
Newbie
Newbie
Posts: 29
Joined: Tue May 22, 2007 12:00 am

selector tool and zoom rectangle

Post by history » Thu Apr 03, 2008 6:20 pm

I setup my application to use the selector tool and when the top axis is clicked a new modal form dialog is displayed.

Once I close the modal dialog the zoom rectangle is displayed within the chart window. I have to click on the chart window to get rid of it.

How can I get rid of the zoom rectangle outline from displaying within the chart Window

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 04, 2008 9:39 am

Hi history,

I'm not able to reproduce the problem here using this code:

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private Steema.TeeChart.Tools.Selector selector1;
		private Steema.TeeChart.Editor edit1;

		private void InitializeChart()
		{
			tChart1.Aspect.View3D = false;

			Steema.TeeChart.Styles.FastLine fastLine1 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
			fastLine1.FillSampleValues();
			fastLine1.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Both;

			selector1 = new Steema.TeeChart.Tools.Selector(tChart1.Chart);
			
			selector1.AllowDrag = true;
			selector1.AllowResizeChart = true;

			selector1.Selected += new Steema.TeeChart.Tools.SelectorSelectedEventHandler(selector1_Selected);

			edit1 = new Steema.TeeChart.Editor(tChart1);
		}

		void selector1_Selected(object sender, EventArgs e)
		{
			Steema.TeeChart.ChartClickedPart MyPart = selector1.Part;

			if (MyPart.Part == Steema.TeeChart.ChartClickedPartStyle.Axis)
			{
				edit1.ShowModal();
			}
		}
Could you please modify it or send us a simple example project we can run "as-is" and let us know the exact steps we should follow to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

history
Newbie
Newbie
Posts: 29
Joined: Tue May 22, 2007 12:00 am

Post by history » Fri Apr 04, 2008 11:46 am

Narcis

I made the changes and was able to reproduce on the sample project. The project has been uploaded to your site.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 04, 2008 2:13 pm

Hi history,

Thanks for the example project.

This seems a bug to me and what's causing it is this line:

Code: Select all

						selector1.Cursor = Cursors.Arrow;
Commenting it in solves the issue. I have added the defect (TF02012943) to the bug list to be fixed.

In the meantime, the only workaround I can think of is changing the zooming key/button combination, for example:

Code: Select all

       tChart1.Zoom.KeyShift=Keys.Shift;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

history
Newbie
Newbie
Posts: 29
Joined: Tue May 22, 2007 12:00 am

Post by history » Fri Apr 04, 2008 2:25 pm

The issue we have at the moment is that our customers want the zoom to remain as is using the click and move.

We can wait for a fix.


Thanks

Post Reply