Label dragging & Chart Resizing

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Gilbert
Newbie
Newbie
Posts: 14
Joined: Thu Jul 10, 2003 4:00 am
Location: Johannesburg

Label dragging & Chart Resizing

Post by Gilbert » Fri May 14, 2004 7:52 am

Howzit,
I have added the "Drag Marks" tool to my chart - fine, i can drag the labels. However, when i resize the chart, the marks do not stay pointing to the relevant point (usisng a TPointSeries) they are fixed in position on the form. How do i get these mark to move with the points?
Regards,
Gilbert

:?:

Pep
Site Admin
Site Admin
Posts: 3305
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri May 14, 2004 10:31 am

Hi Gilbert,

the problem is when you move the mark, you're actually changing it's screen position (expressed in screen pixels) and new position (in screen pixels!) is stored. Now, when you resize the Chart, series values and axis range do change, but NOT the custom positioned object which use screen pixels (among them the "custom positioned" mark). Perhaps one way to solve this problem would be to store mark position in "axis values"

Post Reply