Hello, (win10-64/laz 4.8-fpc 324RC1)
I have an application of mine working as expected. It can draw any kind of data (typically measurements) with a variety of plot formats. This component is completely written in Pascal (not third party code).
I can also put marker on some points, and they can be moved left-right to the next point.
However, when a marker is moved the whole graphics area is repainted, not a real problem even with a lot of plots, but it is time to improve this.
The goal is to realize the marker movement with “simple” code written in pascal.
I attached a demo of the basic idea. Run the app, click first button “set line” and then press “steps” as many time you like, and you will see the marker moving along the line correctly.
But, as shown in the second figure, I have no idea how to achieve this for the text exposed close to the marker, typically indicating the value of the data highlighted by the marker.
Code snippets (and/or alternatives) are appreciated.
Regards.