10-22-2021 05:38 AM
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:
Regards,
Davy
10-22-2021 05:47 AM
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…
10-22-2021 05:50 AM - edited 10-22-2021 06:42 AM
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?
10-22-2021 11:21 PM
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:
11-03-2021 01:55 AM
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.