LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable runtime shortcut menus not working on xy graph plots - BUG?

Solved!
Go to solution

We want to disable runtime shortcut menus on all objects on the front panels in our applications, or at least some XY graphs. I've tried:

> unchecking the Allow Runtime Shortcut Menus box in vi properties.

> checking Disable option in the Advanced|Runtime Shortcut Menu for each graph object

>using the Delete Menu Items vi from the Menus palette in an event structure to kill off all the items

They all have the same effect, shutting down the shortcut menus, EXCEPT for the traces or plots shown in the XY graph legend. In all instances the disabling action doesn't touch these, and the shortcut menus still appear when the trace in the legend is right-clicked.

 

Is this a bug? Anybody know how to work around? I've attached the experiment vi I've been using to try all these options.

0 Kudos
Message 1 of 12
(4,930 Views)

I do not think this is a bug. The reason is that, you use the plot legend to have these options. If you do not want these options, do not show the plot legend. You can show the names of the different curves by other ways, like creating custom decorations...

 

One possible workaround: just place a rectangular filled box (i cannot recall it's name from the decorations classic palette) above the graph legend. Make this GUI object transparent. In this way the legend will be visible, but no way to click into it...

 

Message 2 of 12
(4,919 Views)

I'm still thinking that this is a LV bug, but the transparent decoration idea works and gets me out of the hot seat, and I probably wouldn't have thought of it.

Thanks!

0 Kudos
Message 3 of 12
(4,904 Views)

Oops, guess I accepted that solution too soon. Since I am dynamically resizing some of the graphs to overlay video images, the decorations won't follow them around, being static objects. If they weren't moving targets, this would work fine.

 

We use the legend to identify the various traces, which I think is what they're primarily for. If we wanted the users to access the runtime shortcuts, we wouldn't be having this discussion.

0 Kudos
Message 4 of 12
(4,899 Views)

Example_VI_BD.png

aputman
0 Kudos
Message 5 of 12
(4,888 Views)

Arrgh. Another good suggestion, but the runtime menus still appear even if clicked with left, #1 button, and we want the users to be able to adjust the scales on the graphs without cluttering the panel with a bunch of new controls to do that with property nodes.

I guess one solution is to move the legends to the upper left corner which doesn't move in our apps, and use the transparent decoration box. But that really screws with the establiched layout.

0 Kudos
Message 6 of 12
(4,871 Views)
Solution
Accepted by topic author bill_gilbert

Give Leg.Diable (Property of Graph Long Name = Plot Legend Disable) a TRUE

Capture1.png

Or At run-time

Capture.png

See the Help here

Capture3.PNG

Your welcome


"Should be" isn't "Is" -Jay
Message 7 of 12
(4,860 Views)

Jeff,

How did I NOT see that?

Megathanks, it really works!

BG

0 Kudos
Message 8 of 12
(4,855 Views)

@bill_gilbert wrote:

Jeff,

How did I NOT see that?

 


I'm betting its because its in the advanced RCM of the Graph and not on the RCM Of the Plot Legend where any sane person would look for it.  (That helps explain why Blokk missed it too)

 

Thankfully, I don't get overly hung up on attempting to appear like I have ever had too much sanity. 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 12
(4,841 Views)

Well, i do not consider myself a sane person 🙂 But I am on holiday with only a smart phone 🙂 I think i could have found the solution if i was able to access LabVIEW 😉

0 Kudos
Message 10 of 12
(4,836 Views)