LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

drag annotation in one axis only

I have some annotations that are created automatically on an XY plot.  The annotation is associated with a time point in the x-axis, but it might be created right on top of some data.  I would like the user to be able to drag the annotation (not just the label) along only the y-axis.  Is there an easy way to do this?
One solution which won't be too difficult to add to my code is to track the drag and then reset the x while leaving the y alone.  But I was hoping there might be an easier way that I am missing.
Thanks,
Matt
0 Kudos
Message 1 of 2
(2,577 Views)
Hi mattkav,

I am not aware of any easier way to accomplish this. The only other thought I had was to create an invisible cursor at the current location of the annotation, and then as the cursor is being dragged, move the corresponding annotation. I don't think this would really be any easier than the solution you proposed though.
Nick R
NI
0 Kudos
Message 2 of 2
(2,547 Views)