Page 1 of 1

TChart blocks updates of other components

Posted: Wed Oct 18, 2006 7:35 pm
by 8119873
Hi,

I have a TChart on a Windows form, along with some other controls (groupboxes, etc). When some other window is placed over this form and is then moved away, some components do not redraw themselves.

We traced the problem to Z-order - only the components that are added to the from after the TChart component, are not updated - probably update event is somehow consumed within TChart control.

I can not work around this way - I have multiple instances of TChart control on the same form. Also, the problem occurs even with controls on a different form of the same application - here Z-order will not help..

This seems to occur only with 3D charts (contour, surface)

Click on the TChart control causes the control which did not update to redraw

Is this a known problem, is there a workaround? Help would be appreciated.

TChart Version 1.1.1644.16795

Natalia

Posted: Thu Oct 19, 2006 8:05 am
by narcis
Hi Natalia,

Could you 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.

Thanks in advance.

BTW: Also notice that there's a newer version availble at the client area.

Posted: Fri Oct 20, 2006 9:16 am
by narcis
Hi Natalia,

Thanks for the project. I tested it here with Build 1.1.2307.20497, which is the latest TeeChart for .NET v1 release available at the client area, and couldn't reproduce the problem here. Could you please download and install this version and test if it works fine at your end?

Thanks in advance.

Posted: Fri Oct 20, 2006 10:48 pm
by 8119873
Yes, the new version does not have this problem.

Thanks!

Posted: Fri Nov 03, 2006 8:46 am
by 9641959
Hello,

I have noticed the same problem with TeeChart 2.0.2489.20951. I am using Visual C++ 2005 .NET.

If I use for example two Charts in one form and I want to update both charts very quickly (~ 10 updates per second), only one chart is updated, the other chart seems to be blocked, i.e there is no repaint of this one.

Only if I move the window with the mouse both charts are updated together.

I used a splitContainer and dropped one chart in the upper and the second chart in the lower panel of the splitContainer.

I have still no idea how to fix the problem.

Thanks,

Norbert

Posted: Fri Nov 03, 2006 8:53 am
by narcis
Hi Norbert,

Could you 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.

Thanks in advance.

Posted: Tue Nov 07, 2006 12:32 pm
by narcis
Hi Norbert,

Thanks for the example. We could reproduce the problem here and it is not a TeeChart problem, is a thread using problem. What happens is that the thread stops before both charts have time to draw themselves.

An option would be stopping the thread in the 2nd chart AfterDraw event so that it has the exact time for both charts to draw.

Another option is using a timer. I'm going to attach your project modified at the newsgroups. It is using a timer and reducing its interval you can see that the charts don't have time to draw themselves.

Posted: Thu Nov 09, 2006 5:45 pm
by 9641959
Hi,

thanks for your answer and the code modifications.

I'm using now a timer to update the charts instead of invoking the update functions within the thread. Thats working fine.

Norbert