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



CrossHairSetPos


Unit:SDL_polchart
Class: TPolChart
Declaration: procedure CrossHairSetPos (chnum: integer; rad, phi: double);

The method CrossHairSetPos sets the position of the crosshair chnum to the position [rad,phi]. 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 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: 2016-Aug-29