TChart blocks updates of other components

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Natalia
Newbie
Newbie
Posts: 7
Joined: Tue Apr 08, 2003 4:00 am

TChart blocks updates of other components

Post by Natalia » Wed Oct 18, 2006 7:35 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Oct 19, 2006 8:05 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Oct 20, 2006 9:16 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Natalia
Newbie
Newbie
Posts: 7
Joined: Tue Apr 08, 2003 4:00 am

Post by Natalia » Fri Oct 20, 2006 10:48 pm

Yes, the new version does not have this problem.

Thanks!

Norbert
Newbie
Newbie
Posts: 2
Joined: Fri Jul 21, 2006 12:00 am

Post by Norbert » Fri Nov 03, 2006 8:46 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Nov 03, 2006 8:53 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Nov 07, 2006 12:32 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Norbert
Newbie
Newbie
Posts: 2
Joined: Fri Jul 21, 2006 12:00 am

Post by Norbert » Thu Nov 09, 2006 5:45 pm

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

Post Reply