TCursor Tool Horz Line locks up when Unzoomed

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Matt Venkat
Newbie
Newbie
Posts: 16
Joined: Wed May 18, 2005 4:00 am
Location: Sydney, Australia
Contact:

TCursor Tool Horz Line locks up when Unzoomed

Post by Matt Venkat » Thu Aug 18, 2005 6:54 am

Recently I upgraded to Tee V7.04 from V5.03.
Using Delphi 7. Could compile run my project.

I am using Vertical Custom Axes, created at run-time.
When the Chart is displayed the Horz Line of the Cross Hair cursor (TCursorTool) locks up and does not move, whether follow mouse or not.
When Zoomed In/out it moves but locks up again when Unzoomed.

Had this problem in V 5.03 too but found a way around by calling
Chart.ZoomPercent( 100 );
Chart.UndoZoom();

But this is does not work in V7 !

This problem seemed to be associated with Custom axis. I have
UseChartRect := True

In an other simple graph, without Custom Axes, in the same Application, the cross hair works fine, without locking up.

Any Ideas ?

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 Aug 18, 2005 7:35 am

Hi Matt,

I'm unable to reproduce this issue. Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
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 » Wed Sep 14, 2005 1:09 pm

Hi Matt,

Thanks for the example project. I've been able to reproduce that and noticed that this only happens when no series is using standard left and bottom axes and because TCursorTool is not assigned to any series. I'll add this issue to our defect list to be fixed for the next releases.

In the meantime, a workaround could be having a "dummy" series, populated with values, with default axes associated and being not visible makes the TCursorTool work properly and as the series is not visible their associated axes are not visible as well. I've attached the workaround project together with the project you sent at the newsgroups. Another workaround is assigning one series to the TCursorTool but then the tool only works on that series axes range.
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

Matt Venkat
Newbie
Newbie
Posts: 16
Joined: Wed May 18, 2005 4:00 am
Location: Sydney, Australia
Contact:

Post by Matt Venkat » Thu Sep 15, 2005 4:49 am

Thanks for the response.

Another work around is to use Chart.ZoomPercent( 100 ) every where you want to use Undozoom() - this does not lockup the cursor. You will have to sacrifice the the unzoom by right to left drag by setting Chart.Zoom.UpLeftZooms := True. This is what I am using and appears to work.

Post Reply