LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

left click runtime shortcut menu

Hi;

I have one control button. I have defined its run-time shortcut menu. My question is can I pop-up the shortcut menu using left click mouse instead of right click? How to do it? Can somebody help me?
0 Kudos
Message 1 of 4
(3,436 Views)

Hi DUE,

yes it is possible, you can use the mouse down event and generate in this event the mouse_event for the right key. It is possible with the user32.dll funtion. Do you want to change the keys for this button, or shall both open the menu? The attached example shows, how you can open the menu with both mouse keys.

Hope it helps.

Mike

0 Kudos
Message 2 of 4
(3,430 Views)

Or like this:


___________________
Try to take over the world!
Message 3 of 4
(3,425 Views)
Thank you very much to both of you. It is exactly what I want. However when I run the code given by MikeS81 in LabVIEW 8.2.1, it was crashed, but it run normally in LabVIEW 8.5. Therefore I used the code given by tst. Thank you again for both of you
0 Kudos
Message 4 of 4
(3,408 Views)