LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Customize Context Menu in Plot Legend

Solved!
Go to solution

I am using Labview 2014.  When I click (right or left) on the PLOT Style regions of a XY or waveform graph a menu a menu comes up.  I would like to modify what is in the menu, but  I cannot figure out how.  There are several posts about how to disable but that is NOT what I would like to do.

Does anyone have any ideas?

0 Kudos
Message 1 of 8
(3,725 Views)

While in edit mode. Just right click on the graph:  Advanced/Run time short cut menu/ Edit.




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 8
(3,679 Views)

Thanks for the suggestion.  Unfortunatley that only deals with the main shortcut menu for the graph.  I am interested in the menu that comes up when you right or left click in the plot properties portion of the legend.  It allows you to change the plot line type, color, ect..

0 Kudos
Message 3 of 8
(3,662 Views)

Hi Mark,

 

You can change the plot line type, color and other properties using Property Nodes. To use Property Nodes, you first create a reference to the Front Panel object by right clicking the plot then selecting Create -> Reference. You can then wire a Property Node to the Plot Reference on the Block Diagram and modify the selected properties. Please see the below links for more information on Properties Nodes.

How Can I Programmatically Change the Plot Colors of Multiple Lines on a Single Graph or Chart?

http://digital.ni.com/public.nsf/allkb/C6BFD9BD5F01108C86256F8100638B29

Customizing Graphs and Charts

http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/customizing_graphs_and_charts/

Control References: Overview

http://www.ni.com/white-paper/3159/en/

0 Kudos
Message 4 of 8
(3,628 Views)

As far as I know you can't edit that menu of the control.  Graphs in general feel like 90% complete to me, and this is just one example.  In the past what I've had to do is disable menus like this one.  Them implement the same functionality, in a contol that I have more flexibility with.

0 Kudos
Message 5 of 8
(3,621 Views)

Can I disable just the functionality of the legend?  I am using right click shortcut menus on the main graph for exporting.  I saw one post where someone used a transparent decoration.  I could do that, but that isn't very elegant.

0 Kudos
Message 6 of 8
(3,604 Views)
Solution
Accepted by topic author Mark5000
You could try to catch the mouse down? Filter event, and if the mouse is over the legend then discard it.
0 Kudos
Message 7 of 8
(3,593 Views)

Good idea.

0 Kudos
Message 8 of 8
(3,588 Views)