CursorTool redraw in MDI application

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Bert B.
Newbie
Newbie
Posts: 69
Joined: Fri Jun 15, 2007 12:00 am

CursorTool redraw in MDI application

Post by Bert B. » Tue Apr 19, 2011 11:49 am

Hello,

For several years I used a trick to reduce cpu usage when redrawing a CursorTool.
Recently I upgraded to TeeChart 2011.03.30407 (Delphi 2007) and discovered a problem with MDI forms. The attached program demonstrates the problem.
When using default drawing, everything is working fine but cpu usage is very high.

Now set the drawing type to fast and open 2 or more MDI children. Move one of the MDI forms over another one and away and see that the cursortools isn't being updated any more. The only way to correct that is resisizing the MDI form.

What do I have to do to correct this problem? I have the sources.

Regards,
Bert
Attachments
MdiCursorTool.rar
(6.24 KiB) Downloaded 616 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: CursorTool redraw in MDI application

Post by Sandra » Tue Apr 19, 2011 2:56 pm

Hello Bert B.

Could you tell us in which version your Trick works as you expected?

Thanks,
Best Regards,
Sandra Pazos / 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

Bert B.
Newbie
Newbie
Posts: 69
Joined: Fri Jun 15, 2007 12:00 am

Re: CursorTool redraw in MDI application

Post by Bert B. » Tue Apr 19, 2011 3:07 pm

This trick was verified to work with versions 7.12 and 8.06.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: CursorTool redraw in MDI application

Post by Yeray » Thu Apr 21, 2011 3:30 pm

Hello Bert,

I could reproduce the problem from v2010.00 so I've added it to the wish list to be investigated for future releases (TV52015541).
However I see we recommended you to use custom drawing also for performance reasons here. Doesn't it work fine for you?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Bert B.
Newbie
Newbie
Posts: 69
Joined: Fri Jun 15, 2007 12:00 am

Re: CursorTool redraw in MDI application

Post by Bert B. » Fri Apr 22, 2011 7:36 am

Hello Yeray,

The recommended custom drawing isn't working for me for the following 3 reasons.

1) Stability. Try the 3 different methods. Suddenly your recommended method isn't working anymore. The cursor can only be seen in the upper part of the chart.

2) The mouse cursor keeps flashing if it is over the chart. That is caused by the constant redraws of the chart.

3) Code simplicity. With you method I have to override every ChartAfterDraw and declare a variable IsBuffering.
My method can be put in a simple procedure where you have to supply the CursorTool and the desired Value.

It is not fair to say 'my method', because you are using it yourself in the examples. See procedure CursorSynchronize in Tool_CursorSynchro.pas.

Regards,
Bert
Attachments
TeeChartTest.rar
(2.01 KiB) Downloaded 614 times

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

Re: CursorTool redraw in MDI application

Post by Narcís » Tue Apr 26, 2011 10:58 am

Hi Bert,

Thanks for your feedback. I have updated and incremented issue's priority in the defect list.
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

Bert B.
Newbie
Newbie
Posts: 69
Joined: Fri Jun 15, 2007 12:00 am

Re: CursorTool redraw in MDI application

Post by Bert B. » Fri Aug 19, 2011 10:00 am

Hello,

It has been 4 months since I reported this issue and I still haven't got a fix.
When will this be fixed?
I don't need the useless Twitter/Facebook/... answer.
As a comparison: when I report a bug to Developer Express, the fix is usually there within a dew days. What a difference!

Regards,
Bert

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

Re: CursorTool redraw in MDI application

Post by Narcís » Wed Aug 24, 2011 8:27 am

Hello Bert,

We have been doing some tests with this issue and we think it is fixed with our current sources. I'll send you an email with the sources we think are working fine for us. Can you please check if they solved the problem at your end? If that's the case you could expect it to be fixed in next maintenance release.

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

Bert B.
Newbie
Newbie
Posts: 69
Joined: Fri Jun 15, 2007 12:00 am

Re: CursorTool redraw in MDI application

Post by Bert B. » Wed Aug 24, 2011 9:26 am

Hello Narcís,

It seems that the bug has been fixed. Good work!

Regards,
Bert

Post Reply