Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

onplotareamousedown

i am trying to make cursor change according to x-coordinate of a spot where i clicked on the graph....
 
this is my code below...
 

void

CFinal1Dlg::PlotAreaMouseDownCwgraphTop(short* Button, short* Shift, VARIANT* XPos, VARIANT* YPos)

{

CString abc;

abc.Format("%f", CNiVariant(XPos));

SetDlgItemText(IDC_STATICy,abc);

m_graph_top.Cursors.Item("Cursor-1").SetPosition(CNiVariant(XPos),CNiVariant(YPos));

}

First three lines are for checking purpose, and last line is the code to change the location of the cursor....

static text didn't give me any value when i clicked on the graph...

i am soooo stuck...

Plz give me any advices...

THANK YOU...

0 Kudos
Message 1 of 2
(3,004 Views)

It sounds like that your event handler is not getting called. Did you change the track mode of the graph? If not, go to the Graph tab in the graph's property pages and change the track mode to "Plot Area Events."

- Elton

0 Kudos
Message 2 of 2
(2,994 Views)