Page 1 of 1

Zoom :: Pen & Brush example doesn't work

Posted: Mon Oct 24, 2005 10:36 pm
by 9637279
The example application under: Miscellaneous-> Zoom and Scroll -> Pen and Brush has two options:
1. Zoom pen - this works!
2. Zoom brush - whatever I edit there is no corresponding effect at all.

(I am running on Windows 2000, Lastest Service Packs).

How do I change the zoom rectangular look inside?

Thanks,
fano

Posted: Tue Oct 25, 2005 8:12 am
by narcis
Hi fano,

It works for me here using latest version available at our Customer Download Area. You could also download the latest debug build, rebuild the example (C:\Program Files\Steema Software\TeeChart for .NET v2\Examples\DemoProject) and try it again.

Zoom :: Pen & Brush example doesn't work

Posted: Thu Mar 23, 2006 10:31 pm
by 9639219
I am having the same problem. When will this be fixed?

Posted: Fri Mar 24, 2006 10:09 am
by narcis
Hi dhait,

Have you tried using latest maintenance release available at our Customer Download Area?

I have the same problem

Posted: Mon Sep 25, 2006 10:32 am
by 8121575
Hi!
Using latest 1.1.2379 build and I rebuilt the demo app. Still the Brush settings in the misc->zoom->pen&brush doesn't work. It doesn't work in my application either.

In the first releases there was a rectangle drawn when zooming out, now it is gone. Is there any way to get it back?

Thanks in advance!

Posted: Mon Sep 25, 2006 11:07 am
by narcis
Hi lars,

I've added your request to our wish-list to be considered for inclusion in future releases.

Zoom brush again

Posted: Mon Sep 25, 2006 12:40 pm
by 8121575
Hi again,
is my experience with the zoom brush not working a known bug?

is there any workaround to set the color of the zoom rectangle?

thanks

Posted: Mon Sep 25, 2006 2:07 pm
by narcis
Hi lars,

According to my colleagues it has always been like this with TeeChart for .NET. However you can try doing something like the code below to draw your own rectangle.

Code: Select all

		private int X0,Y0;
		private bool Zoomed = false;

		private void Form1_Load(object sender, System.EventArgs e)
		{
			line1.FillSampleValues();

			tChart1.Zoom.Pen.Color = Color.Red;
			tChart1.Zoom.Brush.Color = Color.Blue;			
		}		

		private void tChart1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			if (Zoomed)
			{
				X0=e.X;
				Y0=e.Y;
			}
		}

		private void tChart1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			if ((Zoomed) && (X0!=0) && (Y0!=0))
			{
				tChart1.Graphics3D.Pen.Color = Color.Red;
				tChart1.Graphics3D.Brush.Color = Color.Blue;
				tChart1.Graphics3D.Rectangle(X0,Y0,e.X,e.Y);
			}
		}

		private void tChart1_Zoomed(object sender, System.EventArgs e)
		{
			Zoomed=true;
		}

		private void tChart1_UndoneZoom(object sender, System.EventArgs e)
		{
			Zoomed=false;
			X0=0;
			Y0=0;
		}

Posted: Mon Sep 25, 2006 6:10 pm
by 8121575
Hi,
and thanks for your effort! Yes, I've had that solution as an option, thanks you anyway.

But I don't agree with you that it always have been this way. We released our first version of our application about two years ago (using TeeChart .Net). Now when we have released a new version (together with a newer TeeChart) our customer have complaint about the missing zoom-out-rectangle. I remember that as well, it was definitely there.

Posted: Tue Sep 26, 2006 7:32 am
by narcis
Hi lars,

I added this information to our wish-list to be reviewed for future releases.