LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I custimize the menu that pops up on right click on numeric during run time?

Can I customize the right click menu that pops up on a numeric control?

0 Kudos
Message 1 of 3
(4,401 Views)

Yes you can, if you ve got LV 8.0 or above...

Else, you ve to play around with the Event Structure in that you ve to poll for the mouse button in the Numeric's Mouse Down event. If the value is 2, that means you ve got a Rt Click from the mouse & accordingly pop-up a Listbox pre-filled with the Menus you want. Get the Coordinates from the Event Data Node on the left side & wire it to the Coordinates property of the Listbox. After a Menu selection is done, again hard-code the Corodinates property of the Listbox with some value that is invisible from the User's field of view.

You can achieve within an hour of wiring from blank... Smiley Very Happy

Or see the attched VI for more details... Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
Message 2 of 3
(4,389 Views)
Thanks Partha
0 Kudos
Message 3 of 3
(4,344 Views)