Drawing on a zoomed tColorGridSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
dpatch
Newbie
Newbie
Posts: 53
Joined: Mon Jul 02, 2007 12:00 am

Drawing on a zoomed tColorGridSeries

Post by dpatch » Wed May 16, 2012 12:57 pm

I am drawing on a tColorGridSeries using PolyLine routine. I as per your direction, I insert the data using the left and bottom axis and populate/show the top and right axis on the plot (see earlier post from me). The image and axis look fine when I zoom, pan or draw.

I call axis.CalcXPosValue and CalcYPosValue to determine location to draw and that works great when I have no zoom or pan. However, if I zoom in and make these calls, X and Y locations are in the same place instead of the zoomed location. When zoomed or panned, the axis is correct, but still draws in the un-zoomed location. Can you help?

Thanks in advance.

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

Re: Drawing on a zoomed tColorGridSeries

Post by Yeray » Fri May 18, 2012 8:05 am

Hello,

Maybe it's too early when you call the CalcXPosValue/CalcYPosValue and the internal values haven't still been updated.
Try forcing a chart repaint before calling these routines.
If you still have problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.
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

Post Reply