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....


Class: TRChart
Declaration: procedure CrossHairSetPos (chnum: integer; x,y: double);

The method CrossHairSetPos sets the position of the crosshair chnum to the position [x ,y]. The parameter chnum is the number of the crosshair to be set (1..4). The crosshair will be visible in the chart if the crosshair is switched on and is located within the visible range of the chart. The kind of crosshair can be controlled by the method CrossHairSetup.

Note: Switching on any of the crosshairs on slows down panning and zooming by approx. 30 %

Hint 1: A crosshair may be used as a mouse cursor by simply calling CrossHairSetPos in the OnMouseMoveInChart event.

Hint 2: A better replacement of the property CrossHairSetPos is the properties CrossHair1..4.

Last Update: 2017-Jul-26