LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Context menu

Hi to all and thanks in advance.
My question is very simple:
how can i implement a context menu using LabWindows/CVI?
Thanks a lot...

LOCK.
0 Kudos
Message 1 of 5
(3,707 Views)
In response to an EVENT_RIGHT_CLICK, call the function RunPopupMenu.

Luis Gomes
NI
0 Kudos
Message 2 of 5
(3,707 Views)
Thanks a lot Luis, RunPopupMenu works...
But now i have another problem...
RunPopupMenu ever displays the menubar at the top of the window.
Can i avoid this in some way?
Thanks a lot..

LOCK.
0 Kudos
Message 3 of 5
(3,707 Views)
It shouldn't display the menubar, unless you also associate the menubar with the panel.

Look at the smithdem example, in samples\apps\smithchart\smithdem.prj. It uses RunPopupMenu when you left-click or right-click on the chart. Do you use it the same way?

- luis
0 Kudos
Message 4 of 5
(3,707 Views)
All is clear now.
Thanks a lot, Luis...

LOCK.
0 Kudos
Message 5 of 5
(3,707 Views)