Author Topic: enable easy marker movement  (Read 260 times)

Paolo

  • Hero Member
  • *****
  • Posts: 786
enable easy marker movement
« on: August 11, 2026, 12:10:00 pm »
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.

ADMGNS

  • Jr. Member
  • **
  • Posts: 90
  • keep it simple and smart
Re: enable easy marker movement
« Reply #1 on: August 12, 2026, 12:29:14 pm »
hello

after a bit googleing, i understand that xor'ing is only for drawing lines, rectanges etc, not textout..

i think, layered drawing is the most suitable solution for you.

but, have a look at attachment pls first

regs

Paolo

  • Hero Member
  • *****
  • Posts: 786
Re: enable easy marker movement
« Reply #2 on: August 12, 2026, 01:30:39 pm »
many thanks ADMGNS.

 

TinyPortal © 2005-2018