Page 1 of 1

Plot is not being updated in Borland studio 2006 (c++)

Posted: Fri Mar 31, 2006 1:47 pm
by 9238695
Hi

I have a strange problem. I just upgraded from Borland C++ version 6 to Studio 2006. I also upgraded to Teechart 7.06.

When I run my program in the compile enviroment the plots are being updated, but when I let other people run my applications their windows are not updating my plots. This was not an issue in B++ 6.0 with the proper TeeChart. Repaint() and Refresh() does not help. Any ideas?

Best regards
Carsten

Posted: Fri Mar 31, 2006 2:23 pm
by narcis
Hi Carsten,

You can try with Chart1.Invalidate or Chart1.Draw but be very careful where you use them because you can fall into an infinite loop.

If the problem persists 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.

Posted: Fri Mar 31, 2006 3:14 pm
by 9238695
Hi

After trying your suggestion I now have an even stranger issue. My plot footer/header and grid is being updated. But not the graph itself. Even when I remove the commands you suggested. What is going on?

Best regards
Carsten

Posted: Fri Mar 31, 2006 3:17 pm
by narcis
Hi Carsten,

Could you please send us an example we can run "as-is" to reproduce the problem here?

Thanks in advance.

Posted: Fri Mar 31, 2006 3:41 pm
by 9238695
Hi

I just deleted my Chart. And inserted a new one instead. And now it seems to work again. If I see the issue again,- I will send you some code. BTW, the code you described was not C++. Are you testing your code with the C++ part of Borland Studio 2006 ?

Best regards
Carsten

Posted: Fri Mar 31, 2006 3:57 pm
by narcis
Hi Carsten,

I'm glad to hear you could solve that issue.
BTW, the code you described was not C++. Are you testing your code with the C++ part of Borland Studio 2006 ?
Sorry, I forgot about that. We try to test the code in the IDE and language that our customers tell us.