|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home ChartPack RChart Class TRChart Methods DrawToRelPix|
|See also: DrawTo, MoveToRelPix|
The method DrawToRelPix comes in two overloaded versions. Version  draws a line from the current cursor position (CP, in pixel coordinates) to the point (CP+dx,CP+dy), while version  draws this line from the position [x,y].
The length and direction of the line to be drawn is specified by pixel coordinates of the chart window (dx and dy), thus providing a way to draw elements which are independent of the scaling of the chart.
Please note that only lines drawn by the second version can be searched by FindNearestItemScreen, FindNearestItemReal and FindNearestAnnoElem because the starting point [x,y] of the line is stored in the DataContainer.