Rao,
OK, I added this to the bottom of the Paint() method:
- Code: Select all Expand view
if ::bPainted != nil
eval( ::bPainted )
endif
And now the line is being drawn. However, the drawLine() method is actually using window coordinates, not chart coordinates, so the line is drawn partly outside the chart.
METHOD DrawLine( nY1, nX1, nY2, nX2, nColor, lDotted )
drawLine(0,0,600,600) draws the line starting at the top left corner of the dialog not the top left corner of the chart. It seems that corrections for the coordinates of the drawLine() method are made inside the Paint() method. So, it will be a major level of effort to just draw a line using the drawLine() method.
My desire is to draw some horizontal lines across the entire length of the chart. Another option might to be to create a dummy array of data points all of the same Y value and then plot them on the chart. I would like to do this without showing the actual data points and I am not yet sure if this can be done.
Regards,
James