Page 1 of 1

TCursor Tool Horz Line locks up when Unzoomed

Posted: Thu Aug 18, 2005 6:54 am
by 9341927
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 ?

Posted: Thu Aug 18, 2005 7:35 am
by narcis
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.

Posted: Wed Sep 14, 2005 1:09 pm
by narcis
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.

Posted: Thu Sep 15, 2005 4:49 am
by 9341927
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.