Page 1 of 1
The chart image disappears!
Posted: Wed Aug 18, 2004 12:45 pm
by 9083345
Hello,
I just upgraded to v7. When I draw some chart like shown below,
and move it around while I click on the object, the Image disappears like below and suddenly appears again at some time later.
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.
Posted: Thu Aug 19, 2004 8:59 am
by Chris
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
. 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!
Posted: Thu Aug 19, 2004 9:24 am
by 9083345
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.
Posted: Thu Aug 19, 2004 10:49 am
by Chris
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.