LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

overruling right-click

Hello everyone,

it seems easy however i've still not succeeded in programming the desired behaviour.
I want to overrule the right-click on a control and generating a popup (menu) without the seeing the default menu (reinit to default copy data... en so one)
Is there a way to achieve this?

Thx in regards Ruud

0 Kudos
Message 1 of 5
(3,045 Views)
I guess you're dealing with a event structure.
If it's so you have to add a mouse down? event (notice the question mark) on the control (or controls) you desire and wire a TRUE costant to Discard?.
It should be enough.

manga
0 Kudos
Message 2 of 5
(3,042 Views)
How would you create your own custom popup after you discard the default one?

Thanks, Eoin
0 Kudos
Message 3 of 5
(2,994 Views)

Custom menu are native functions in LV 8. With previous versions there have been a number of proposed solutions. See for instance here

 

Chilly Charly    (aka CC)
0 Kudos
Message 4 of 5
(2,990 Views)
As noted in the previous reply, the functionality you want was added in LabVIEW 8.0. You can configure the shortcut menu statically (at edit time) or dynamically (when running). If you search online help for "Customizing Run-Time Shortcut Menus for Controls" you will see the two topics which explain how to do this. There's also an example called "Run-Time Shortcut Menus.vi".
 
Enjoy,
Roy
0 Kudos
Message 5 of 5
(2,952 Views)