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



CrossHair


Unit: SDL_colorscale
Class: TColorScale
Declaration: property CrossHair: TCrossHair;

The property CrossHair controls the position, color, and the layout of the crosshair and provides the following sub-properties:

PosX: double; Position of the crosshair. Please note that PosX and PosY are equivalent for color scales.
PosY: double; Position of the crosshair. Please note that PosX and PosY are equivalent for color scales.
Color: TColor; Color of the crosshair.
Mode: TCrossHMode; Defines the visibility of the crosshair: chOff switches the crosshair off, all other values (chHoriz, chVert, chBoth, chBox) switch the crosshair on. The crosshair is always a single horizontal or vertical line depending on the orientation of the color scale.
LineType: TPenStyle; Pen style of the 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: Please note that the crosshair can be dragged interactively if the property MouseAction is set to maDragCrossH.



Last Update: 2023-Dec-13