08-05-2005 04:23 AM
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...
08-05-2005 11:37 AM
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