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



CrossHairN


Unit:SDL_rchart
Class: TRChart
Declaration: property CrossHair1: TCrossHair;
property CrossHair2: TCrossHair;
property CrossHair3: TCrossHair;
property CrossHair4: TCrossHair;

The properties CrossHair1 to CrossHair4 define the form and layout of the four available crosshairs and contain the following sub-properties:

PosX: double; Position on x-axis.
PosY: double; Position on y-axis.
Color: TColor; Color of crosshair.
Layer: integer; Layer the crosshair belongs to. By default, the crosshairs 1 to 4 are assigned to the chart layers 1 to 4.
Mode: TCrossHMode; Defines the layout of the crosshair (chOff... crosshair is switched off, chHoriz... horizontal linechVert... vertical line, chBoth... full crosshair, chCrossBox... small crosshair, chBox... square box)
LineType: TPenStyle; Pen style for crosshair. LineType may assume one of the following values:
psSolid (solid line)
psDot (dotted line)
psDash (dashed line)
psDashDot (dash-dot combinations)
psDashDotDot (series of dash-dot-dot combinations)
Note that the LineType will be effective only if LineWid is set to 1
LineWid: integer; Line width of the crosshair. Note that lines broader than 1 will always be drawn as solid line, even if LineType is set to some other value.
OnChange: TNotifyEvent; Event triggered when any parameter of the crosshair is changed.

Hint 1: Please note that the visible crosshairs can be dragged interactively if the property MouseAction is set to maDragCrossH.

Hint 2: The crosshairs can also be set up by using the method CrossHairSetup.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): fdistri, rcshared



Last Update: 2023-Dec-13