LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable the menu which comes on left click on a control during run time

Solved!
Go to solution

Hi ,

 I want to disable the plot attribute menu which comes on left click on the plot legend. 

Can anyone help me regarding the same?

Download All
0 Kudos
Message 1 of 2
(2,678 Views)
Solution
Accepted by topic author Reshu

Ok, so it doesn't look like you can edit the runtime menu for the legend specifically, but here are some things you could try:

 

- Place an invisible control/decoration over the legend (which will prevent the user from clicking it)

- If you don't need them to be able to click on the graph at all, then use the Mouse Down? filter event and discard it

- You could perhaps enhance the above by getting the position/size of the legend using property nodes and discard the mouse down only if the click was within the coordinates of the legend (the coordinates of the click is one of the properties returned by the mouse down event).


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 2
(2,668 Views)