How to display the zoom rectangule

TeeChart for ActiveX, COM and ASP
Post Reply
David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

How to display the zoom rectangule

Post by David » Wed Apr 19, 2006 2:40 am

Hi, there,

When I try to zoom in some data, the selection rectangle can't be displayed and I have to estimate the selection range. Is there any way to display the selection rectangle with different colors so that it is easy to know the selection range?

Thank you very much!
David

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

Post by Narcís » Wed Apr 19, 2006 8:43 am

Hi David,

The zoom rectangle is seen by default. However you can try setting its pen and brush:

Code: Select all

    With TChart1.Zoom
        .Pen.Visible = True
        .Pen.Color = vbRed
        .Brush.Color = vbWhite
    End With
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

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Wed Apr 19, 2006 9:48 am

Hi, Narcís,

If the zoom rectangle is seem by default, how come I can't see the rectangle? I am using Teechat 7 in VC.NET 2003.

I beieve the code you provide will work. I will try it soon.

Thank you very much!
David

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

Post by Narcís » Wed Apr 19, 2006 9:54 am

Hi David,

Zoom rectangle works as expected for me here using the VC++ examples included with TeeChart Pro v7 ActiveX in Visual Studio .NET 2003. If the problem persists after running the code I sent please send us an example we can run "as-is" to reproduce the problem here.

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
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

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Wed Apr 19, 2006 10:01 am

Hi, Narcís,

I can't access the newgroup inside my company. Is it possible that you send your code as an zip file to me?

Thank you very much!
David

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

Post by Narcís » Wed Apr 19, 2006 10:04 am

Hi David,

Can you please try if the examples at C:\Program Files\Steema Software\TeeChart Pro v7 ActiveX Control\Examples\Visual C++\Version 6 (default english installation path) display correctly the zoom rectangle when being used in VS.NET 2003?
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

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Wed Apr 19, 2006 10:15 am

Hi, Narcís,

I tried Add data array and I still can't see the zoom ractangle. But in the SeriesTextSource, I can see the ractangle. Is it because of the default chart backgroud color?

Thank you very much
David

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

Post by Narcís » Wed Apr 19, 2006 10:32 am

Hi David,

It works fine for me here using both examples. Can you please send us an example we can run "as-is" to reproduce the problem here?

If you don't have newsgroups access please send it directly to me.

Thanks in advance.
Last edited by Narcís on Wed Oct 04, 2006 11:15 am, edited 1 time in total.
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

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Thu Apr 20, 2006 7:04 am

Hi, Narcís,

It turned out to be the monitor problem. The color of the zoom ractangle is close to the background color and the monitor couldn't display clearly. I changed another monitor and it now works fine.

Thank you very much anyway.
David

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

Post by Narcís » Thu Apr 20, 2006 8:05 am

Hi David,

Thanks for the information. I'm glad to hear you could solve the problem.
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