Zooming problem in TeeChart2010 (MFC Application)

TeeChart for ActiveX, COM and ASP
Post Reply
Billpa
Newbie
Newbie
Posts: 3
Joined: Mon Nov 29, 2010 12:00 am

Zooming problem in TeeChart2010 (MFC Application)

Post by Billpa » Tue Feb 22, 2011 8:01 am

Hi,

Recently we have upgraded TeeChart version from 6 to 10 in our application. The application is a C++ MFC application.
After upgrade the everything is fine except the zooming. Nothing is happening when trying to zoom by the mouse. But there was no problem in version 6 and the same implementation codes are there.
The activex is added in a dialog at design time. m_Chart1.GetZoom().SetEnable(TRUE); statement is there.
I tried the sample VC++ project (from the examples) and the zooming is there as expected.

What may be the possible reasons for not working of zooming?

Thanks,
Raj

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Zooming problem in TeeChart2010 (MFC Application)

Post by Sandra » Tue Feb 22, 2011 12:15 pm

Hello Raj,

Can you try to arrange a simple example project we can run as-is to reproduce the problem here. So can try to find a good solution for you.

Thanks,
Best Regards,
Sandra Pazos / 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

Billpa
Newbie
Newbie
Posts: 3
Joined: Mon Nov 29, 2010 12:00 am

Re: Zooming problem in TeeChart2010 (MFC Application)

Post by Billpa » Tue Nov 15, 2011 7:48 am

Hi,

What should be done to implement zooming of custom axes? Can I get sample codes for this?



Thanks,
Raj

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Zooming problem in TeeChart2010 (MFC Application)

Post by Yeray » Tue Nov 15, 2011 4:41 pm

Hello Raj,

Take a look at the question and the answer here:
http://www.teechart.net/support/viewtop ... 127#p42112
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Billpa
Newbie
Newbie
Posts: 3
Joined: Mon Nov 29, 2010 12:00 am

Re: Zooming problem in TeeChart2010 (MFC Application)

Post by Billpa » Fri Nov 18, 2011 6:10 am

Hi,

Thanks! But my problem is not solved.

what we have done.
1. the TeeChart activex is added in the dialog in design time.
2. the dialog class was inherited from "CExtResizableDialog" of Prof-Uis. I could not add any event handler (showing disabled), now I have replaced "CExtResizableDialog" by CDialog and I can add the event handlers.
3. the custom axes are being added dynamically at run time.

The problem is that the ZOOM event ( OnZoomTchart())is not being fired. What should I do?


Thanks,
Raj

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Zooming problem in TeeChart2010 (MFC Application)

Post by Yeray » Fri Nov 18, 2011 4:18 pm

Hello,

I'm afraid you need an event for this, if not the Zoom events, at least OnAfterDraw. But it's always more delicate because you'll probably need to call a chart repaint into this event controlling you are not creating a endless loop.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply