Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Context Menu on CniGraph 2D

Hello,
I use MeasurementStudio 6 ( vers 7 0 0 343) with Visual C++ 6
I will wish to make a contextual menu on a graph 2d to change the TrackEventmode.
In Ni Example �Simple graph� I add the function �OnMouseDownCwgraphmouse� if Button is ButtonRight I call TrackPopmenu function with two items zoom, cursor.
cursor set TrackDragCursor, zoom set TrackZoomRectX.

After this call cursordrag and zoom never work, pan is OK.
If I comment the line pmnu->trackpopmenu all is working.
Where are my mistakes?
Thank in advance for your help..
0 Kudos
Message 1 of 4
(3,655 Views)
Hi ras
Can you provide me a sample code which reproduce your
problem. I'll try to see what's going wrong with it.

Regards

Salissou ISSA
Applications Engineer
National Instrumnents France
0 Kudos
Message 2 of 4
(3,655 Views)
hello,

Thanks for your help.

On attached file SimpleGraph.zip you can find the original Ni sampleGraph and my modifications, they are signed "// jlr".

Regards.

PS: Ni France ? are you in France ? my english is still a beta release french is better for me.
0 Kudos
Message 3 of 4
(3,655 Views)
Hi,

I have the same problem. I Track the popup menu and all the functionality like zooming are gone. If I track the menu with the pointer to the CNiGraph instance it works, however all the menus are grayed out. Does anyone have a solution for this?

Thanks,
Miklos
0 Kudos
Message 4 of 4
(3,655 Views)