Zoom :: Pen & Brush example doesn't work

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
fano
Newbie
Newbie
Posts: 56
Joined: Wed Jun 22, 2005 4:00 am
Location: USA, California

Zoom :: Pen & Brush example doesn't work

Post by fano » Mon Oct 24, 2005 10:36 pm

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

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

Post by Narcís » Tue Oct 25, 2005 8:12 am

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.
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

dhait
Newbie
Newbie
Posts: 11
Joined: Tue Nov 15, 2005 5:00 am

Zoom :: Pen & Brush example doesn't work

Post by dhait » Thu Mar 23, 2006 10:31 pm

I am having the same problem. When will this be fixed?

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 Mar 24, 2006 10:09 am

Hi dhait,

Have you tried using latest maintenance release available at our Customer Download Area?
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

lars
Newbie
Newbie
Posts: 7
Joined: Tue Jul 08, 2003 4:00 am
Location: Sweden

I have the same problem

Post by lars » Mon Sep 25, 2006 10:32 am

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!

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

Post by Narcís » Mon Sep 25, 2006 11:07 am

Hi lars,

I've added your request to our wish-list to be considered for inclusion in future releases.
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

lars
Newbie
Newbie
Posts: 7
Joined: Tue Jul 08, 2003 4:00 am
Location: Sweden

Zoom brush again

Post by lars » Mon Sep 25, 2006 12:40 pm

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

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

Post by Narcís » Mon Sep 25, 2006 2:07 pm

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;
		}
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

lars
Newbie
Newbie
Posts: 7
Joined: Tue Jul 08, 2003 4:00 am
Location: Sweden

Post by lars » Mon Sep 25, 2006 6:10 pm

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.

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

Post by Narcís » Tue Sep 26, 2006 7:32 am

Hi lars,

I added this information to our wish-list to be reviewed for future releases.
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

Post Reply