LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling the Cursor Legend not possible in LV2020 SP1?

Hi All,

 

I don't want my user to Add/Delete cursors using the Cursor Legend. How can I do this? There seeems no way to Disable the Cursor Legend, only the Plot Legend!
I use LV2020 SP1. In LV7.1 the behaviour of the cursor legend was way better then now..

 

No solutions for our SW:

  • Add transparent control over the cursor legend. As I still want to use the cursor legend for collapsing and operating on the cursor legend.
  • Make it invisible

Regards,

Davy

0 Kudos
Message 1 of 5
(2,659 Views)

Hi Davy,

 


@Arrowin wrote:

I don't want my user to Add/Delete cursors using the Cursor Legend. How can I do this?


Check the CursorList property from time to time for the required number of cursors…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,651 Views)

I would prefer not a programmatic solution like polling constantly for amount of cursors.

I believe NI should have thought about disabling items in their new hardcoded (right-click) menu's.

In fact, I want to find a way to disable the Context Menu of the Cursor Legend. The questions is: Is there a way to do that?

0 Kudos
Message 3 of 5
(2,649 Views)

A slightly roundabout way to disable the context menu of the cursor legend...

 

Create a "Mouse down?" filter event for the graph and discard the event if the right mouse button was clicked on the cursor legend. I can't see an easy way to get the coordinates of the cursor legend, but you could perhaps size a button to the same size as the cursor legend, and hide it behind the cursor legend, and then get the coordinates of the button.

Something like this:

MIG_0-1634962779811.png

 

0 Kudos
Message 4 of 5
(2,579 Views)

Thanks for all the recommended solutions as they work fine for a single tool.
Unfortuantely we have like a huge list of 150+ tools (not speaking of their subtools), all converted from LV7 to LV2020 using graphs and changing all tools will require a lot of manual work which means we probably have to jump into scripting again to try to solve this.

0 Kudos
Message 5 of 5
(2,476 Views)