LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Right Click Menu

Solved!
Go to solution

Hi,

 

I want to disable the right click menu for all the controls in my front panel.

I know that we can right click each of them individually and disable it.

But is there any other way of doing it all at once?

 

Thanks... 

Message Edited by manojpcw on 06-03-2009 09:03 AM
Message Edited by manojpcw on 06-03-2009 09:04 AM
0 Kudos
Message 1 of 6
(8,065 Views)
Solution
Accepted by manojpcw
Unfortunatly you cannot do this programmatically but you can disable runt-time menus for the whole VI in VI Properties >> Windows Appereance >> Customize....
Message Edited by waldemar.hersacher on 06-03-2009 04:16 PM
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 2 of 6
(8,050 Views)
Maybe there is more simple but it should work : I use the filter event "Pane : Mouse Down?" and check which button was clicked (if it is "right button", anywhere on panel, the event is discarded).
Message 3 of 6
(8,047 Views)
Waldemar solution is more simple indeed !
0 Kudos
Message 4 of 6
(8,045 Views)

VI Properties > Window Appearance > Customise > Allow Default Run-Time Shortcut Menus

 

Update - Wow! At the time of writing my response there were no others! Waldermar truly beat me to it Smiley Very Happy

Message Edited by Thoric on 06-03-2009 03:20 PM
Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 5 of 6
(8,044 Views)

Hi manojpcw,

i didn't found  a property or a method to do it with the reference, but you can use an event structure with the event "shortcut menu activation?". You can then discard this event. If you need it for a lot of controls, then you can register this event dynamically.

 

Hope it helps.

Mike

0 Kudos
Message 6 of 6
(8,038 Views)