DrawToRelPix

Declaration: ChartBook.Charts[].DrawToRelPix (dx,dy: integer);
The method DrawToRelPix draws a line from the current cursor position (CP) to the point (CP+dx,CP+dy). The coordinates dx and dy are pixel coordinates of the chart window, thus providing a way to draw elements which are independent of the scaling of the chart.