LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DOing same function as Runtime short cut menus example except with menu ring...

Solved!
Go to solution

Newbie here: I am attempting to create a slide out menu much like the one in the Runtime short cut menu example (in example finder) except with a menu ring instead of the list box that is used in the example.  I have a menu ring with 8 values in it and on 3 of the option I would like a secondary menu that slides out to the side that displays another sub-menu.  Can this be done easily/efficiently?  I am looking at other alternatives but this option would be the best for my application from a user stand point.  Any help and examples would be appreciated. 

 

Thank you

Steve

0 Kudos
Message 1 of 3
(2,847 Views)
I'm not sure I understand what you're trying to do. Are you saying you want to replace the run-time menu with a ring? Or are you trying to attach a run-time menu to a ring?
0 Kudos
Message 2 of 3
(2,836 Views)
Solution
Accepted by s.gnagie

What is being shown in that example is how you can modify or create your own runtime menus (aka popup menus or right-click menus) for a given control.  Basically you customize the menu and then use event cases to handle what to do for the menu selections.

 

Now a menu-ring control is a different beast entirely, BUT it looks almost exactly the same, so I see why the two could be confused.  As far as I know, there's no support in a menu ring for multiple menu levels.

 

Often times I find that effective labview GUI design (and well, design in general) works best with a compromise of what you imagine for what you can do easily and simply.  Flow like water: find a native control behavior that's *good enough*. 

 

But! here's a hack that might get what you want.  It sounds like you want the multi-levelness of a right-click menu but without having to right-click?  Use a "mousedown?" filtering event to replace left-clicking with right-clicks!  Now when the user left-clicks, labview will tell the OS that they right-clicked.

 

 swap clicks.jpg

-Barrett
CLD
Message 3 of 3
(2,829 Views)