The chart image disappears!

TeeChart for ActiveX, COM and ASP
Post Reply
Seth
Newbie
Newbie
Posts: 25
Joined: Mon Aug 02, 2004 4:00 am

The chart image disappears!

Post by Seth » Wed Aug 18, 2004 12:45 pm

Hello,
I just upgraded to v7. When I draw some chart like shown below,
Image
and move it around while I click on the object, the Image disappears like below and suddenly appears again at some time later.
Image
I used as follows.

Code: Select all

[Function]
 
CTChart* p_cfiChart;
 
p_cfiChart->Draw((long)dc_GetHDC(), p_cfiChart->_ObjRect.left, p_cfiChart->_ObjRect.top, p_cfiChart->_ObjRect.right, p_cfiChart->_ObjRect.bottom);
Here, we have our own way of getting the "dc" value. This dc value varies from negative to positive. At v7, the chart appears only when the dc value is positive while at v6, the chart appears all the time.
I would appreciate it, if you would tell me the solution to this.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Thu Aug 19, 2004 8:59 am

Hi Seth,
Here, we have our own way of getting the "dc" value. This dc value varies from negative to positive. At v7, the chart appears only when the dc value is positive while at v6, the chart appears all the time.
I would appreciate it, if you would tell me the solution to this.
Interesting issue :D . Is there any chance you could post to:
news://www.berneda.com/steema.public.attachments
a simple VC++ project we can run "as-is" to reproduce the problem here?

Many thanks!
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Seth
Newbie
Newbie
Posts: 25
Joined: Mon Aug 02, 2004 4:00 am

Post by Seth » Thu Aug 19, 2004 9:24 am

Hello,
we use TeeChart as a component in our software. The problem of making a small project is the dc value is a global variable that can be set by anywhere in the program.
I think the problem is pretty clear. If the dc value is passed as negative, your programmer disable the drawing for some reason hence nothing is shown on screen. I would appreciate it, if you would tell me the reason for this, after you review the code.
Making a patch or just roll-back to the old way seems be the solution to this.
Many thanks.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Thu Aug 19, 2004 10:49 am

Hi,
we use TeeChart as a component in our software. The problem of making a small project is the dc value is a global variable that can be set by anywhere in the program.
I think the problem is pretty clear. If the dc value is passed as negative, your programmer disable the drawing for some reason hence nothing is shown on screen. I would appreciate it, if you would tell me the reason for this, after you review the code.
Well, I'm afraid the problem is not pretty clear to me. By creating your own dc you are effectly drawing to a canvas of your own making, correct? Without being to reproduce the problem here I have no way of being able to solve it for you.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply