Possible to draw lines on graph
Posted: Thu Mar 13, 2008 11:41 am
Hi
In our application we have a pane with a CTreeView and a pane with a CTChart. Following a right click on the CTreeView, it becomes possible to draw lines on the CTChart with the mouse.
We use ON_EVENT to catch a TeeChart event including Mouse Button Down. The event in the Graph (derived from CFormView) is caught in the Graph, then the same function in the parent class is called:
ON_EVENT(CSeqGraphView, IDC_TCHART, 19, OnMouseDownTChart, VTS_I4 VTS_I4 VTS_I4 VTS_I4)
We are unsure what class is responsible for putting down extra shapes and lines on a figure. We caught the Mouse Button Down event as you would expect, but don’t know where else to go from here. The graph is intended only to display data. Is there a way that we can ensure it is not possible to draw on it? Any advice gratefully received.
In our application we have a pane with a CTreeView and a pane with a CTChart. Following a right click on the CTreeView, it becomes possible to draw lines on the CTChart with the mouse.
We use ON_EVENT to catch a TeeChart event including Mouse Button Down. The event in the Graph (derived from CFormView) is caught in the Graph, then the same function in the parent class is called:
ON_EVENT(CSeqGraphView, IDC_TCHART, 19, OnMouseDownTChart, VTS_I4 VTS_I4 VTS_I4 VTS_I4)
We are unsure what class is responsible for putting down extra shapes and lines on a figure. We caught the Mouse Button Down event as you would expect, but don’t know where else to go from here. The graph is intended only to display data. Is there a way that we can ensure it is not possible to draw on it? Any advice gratefully received.