best way to keep an annotation's position sync'd to cursor?
Posted: Mon Sep 18, 2017 7:41 pm
Hi,
I have a couple of cursors that have dedicated annotations that I position in the center of the cursor, just above the X axis.
I put text on these to identify the cursors. Even though I have the cursor width set fairly wide, the annotations work great as cursor touch pads in touch environments.
They seem to be way more consistent in their touch responsivness and interactivity, plus they work great to identify each cursor.
The problem I am having is trying to keep the annotation 'pads' positioned properly on the cursors.
When rectangle zooming, unzooming, panning, autofitting Y Axis, changing x axis range in code, etc, all require the pad to be repositioned as the cursor moves.
Currently every available event to report cursor value changes are tied to movement "by mouse", which doesn't trigger of course when the cursor's position is changed by one of the causes above.
This gives me a huge headache trying to solve ths problem of knowing when to reposition the pads on the cursors.
Is there any way to get an event for the cursors simply when their (x) axis value is changed, regardless of the cause?
Or is there some other way to solve this problem that I'm just missing?
Thanks in advance for your help,
Heather
Hi, I wanted to clarify a bit more what I mean...
The problem is not when the cursor position (value) changes, that is straight forward to handle,
The issue is when the cursor moves relative to it's screen position due to scaling, panning, zooming, etc. when it's actual value doesn't change.
That is where I am struggling...
Thanks, Heather
I have a couple of cursors that have dedicated annotations that I position in the center of the cursor, just above the X axis.
I put text on these to identify the cursors. Even though I have the cursor width set fairly wide, the annotations work great as cursor touch pads in touch environments.
They seem to be way more consistent in their touch responsivness and interactivity, plus they work great to identify each cursor.
The problem I am having is trying to keep the annotation 'pads' positioned properly on the cursors.
When rectangle zooming, unzooming, panning, autofitting Y Axis, changing x axis range in code, etc, all require the pad to be repositioned as the cursor moves.
Currently every available event to report cursor value changes are tied to movement "by mouse", which doesn't trigger of course when the cursor's position is changed by one of the causes above.
This gives me a huge headache trying to solve ths problem of knowing when to reposition the pads on the cursors.
Is there any way to get an event for the cursors simply when their (x) axis value is changed, regardless of the cause?
Or is there some other way to solve this problem that I'm just missing?
Thanks in advance for your help,
Heather
Hi, I wanted to clarify a bit more what I mean...
The problem is not when the cursor position (value) changes, that is straight forward to handle,
The issue is when the cursor moves relative to it's screen position due to scaling, panning, zooming, etc. when it's actual value doesn't change.
That is where I am struggling...
Thanks, Heather