Reposition control relative to the charting area

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
vgromov
Newbie
Newbie
Posts: 3
Joined: Mon Jun 09, 2014 12:00 am

Reposition control relative to the charting area

Post by vgromov » Wed Aug 13, 2014 9:11 am

I'm trying to find a way to reposition floating FMX control relative to the Chart's series area (i.e. virtual rect between axes). Is there any simple way to find its coordinates in terms of TChart control client area?
In addition, to track possible changes to that rectangle, I will need to (correct me if I'm wrong) handle chart's OnResize, OnAdd|Remove series events, providing there is no other sources of possible charting area change, like label font size, label formatting, tick lengths, etc.

vgromov
Newbie
Newbie
Posts: 3
Joined: Mon Jun 09, 2014 12:00 am

Re: Reposition control relative to the charting area

Post by vgromov » Wed Aug 13, 2014 11:28 am

Sometimes I can't help, but feel retarded. The area in question may be requested as:
chart_->ChartRect,
and the right moment to get properly calculated rect is OnBeforeAxedDraw

Post Reply