取消
显示结果 
搜索替代 
您的意思是: 

Customize Context Menu in Plot Legend

已解决!
转到解答

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 项奖励
1 条消息(共 8 条)
5,054 次查看

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




Joe.
"NOTHING IS EVER EASY"
0 项奖励
2 条消息(共 8 条)
5,008 次查看

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 项奖励
3 条消息(共 8 条)
4,991 次查看

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?

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YIF7CAO&l=en-US

Customizing Graphs and Charts

https://www.ni.com/docs/en-US/bundle/labview/page/customizing-graphs-and-charts.html

 

0 项奖励
4 条消息(共 8 条)
4,957 次查看

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 项奖励
5 条消息(共 8 条)
4,950 次查看

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 项奖励
6 条消息(共 8 条)
4,933 次查看
解答
接受人 Mark5000
You could try to catch the mouse down? Filter event, and if the mouse is over the legend then discard it.
0 项奖励
7 条消息(共 8 条)
4,922 次查看

Good idea.

0 项奖励
8 条消息(共 8 条)
4,917 次查看