display chart in MFC CScrollView.

TeeChart for ActiveX, COM and ASP
Post Reply
Richard
Newbie
Newbie
Posts: 40
Joined: Mon May 21, 2001 4:00 am

display chart in MFC CScrollView.

Post by Richard » Fri Feb 01, 2008 3:14 am

I want to make a chart whose width is depending on the number of data records.
that is ,the chart's width is not fixed.The more data I have ,the wider the chart is.
So I create a chart in CTestView deriving from CScrollView.
when the chart is larger than the window and I scroll the window to see the invisible part.all the chart is disappeared.There is nothing in the window.

I am a newer to teechart and vc++.
what should I do,if I want to create a large chart.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Feb 04, 2008 11:58 am

Hi Richard,

maybe adding an invalidate or repaint could be the trick, but in order to check it here, would you be so kind to sene me a simple example with which I can reproduce it here ? You can send me it directly to pep@steema.com

Richard
Newbie
Newbie
Posts: 40
Joined: Mon May 21, 2001 4:00 am

Post by Richard » Tue Feb 05, 2008 2:24 am

have just send the code to you.
please check it.

Richard
Newbie
Newbie
Posts: 40
Joined: Mon May 21, 2001 4:00 am

Post by Richard » Wed Feb 13, 2008 1:49 am

It is resolved.Thanks a lot.:)

Post Reply