Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble retrieving Button value when using OnPlotAreaMouseUp() Callback function

I'm using an NiGraph control and have set it up for the OnPlotAreaMouseUp event. I get to the OnPlotAreaMouseUp() callback fine, but the *Button value is always set to 0, and therefore I cannot ascertain which mouse button has been released. The *Shift value seems to work fine however.
0 Kudos
Message 1 of 2
(2,919 Views)
This appears to be a bug in the current version of the graph - I will log a bug report about this issue. The button parameter is set correctly in the PlotAreaMouseDown event, so for now you could work around it by caching the button value in the PlotAreaMouseDown event and evaluating the cached value in the PlotAreaMouseUp event.

- Elton
0 Kudos
Message 2 of 2
(2,919 Views)