09-16-2015 05:28 AM
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?
Solved! Go to Solution.
09-16-2015 05:55 AM - edited 09-16-2015 05:56 AM
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).