Dear All,
I use a TimeLine and AdvSmoothTimeLine1.TimeLineIndicators.Add.annotation
In a listbox I have the lists of annotation, how can I click and go to the position of the annotation?
b.r.
Giorgio Marino
Hi,
The time line is visualized with a range, so you can get the indicator position that has been added to the collection and substract a date / time value from that position to get the from range and add the same value to get the to range. Then you can position the indicator in the center of the timeline.
Kind Regards,
Pieter
Dear Pieter,
which method I need to call for go in the position ?
can you give me an example ?
b.r.
Giorgio
Hi,
Here is some sample code that maintains the current range, and uses the position of an indicator:
var
d: Double;
pos: Double;
begin
d := AdvSmoothTimeLine1.Range.RangeTo - AdvSmoothTimeLine1.Range.RangeFrom;
pos := AdvSmoothTimeLine1.TimeLineIndicators[0].Position;
AdvSmoothTimeLine1.SetTimeLineRange(pos - d / 2, pos + d / 2);
The visualized indicator will be positioned in the center of the timeline.
Kind Regards,
Pieter
Dear Pieter,
Sorry, I tried but does not work
I can send you by email the source code for example ?
b.r.
Giorgio
Dear Pieter,
thank you for your example, now work!
b.r.
Giorgio Marino