06-22-2017 03:49 PM
In LabVIEW 2016, I have a Waveform graph with multiple cursors. I use a For Loop to sequentially make each cursor active and allow the user to drag the active cursor to a new location. This is done with an event structure with two events; "Waveform Graph":Mouse Move to have the cursor follow the mouse movement and "Waveform Graph":Mouse Up to sense the mouse button and leave the cursor at that location. So far, so good - this works. But in the cursor legend, I have the name of the selected cursor colored so the user will know which one he/she is using. Unfortunately the selected cursor does NOT change when I change the active cursor - but it does change to the active cursor when the Mouse Up event (but not the Mouse Move event) completes.
Is there some way to set the selected cursor equal to the active cursor before the Mouse Up event completes?
Thanks in advance.
Tom W.
06-22-2017 06:39 PM
I don't think the active cursor has anything directly to do with the highlighting that occurs. The highlighting has always bugged me as being unpredictable. Probably best to choose another way to keep the user informed (maybe update the trace color instead?)
06-28-2017 01:26 PM
I agree but it is interesting in the test program that I attached that the selected cursor DOES change when I change the active cursor but it always lags one behind.