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


Unit: SDL_rchart
Class: none
Declaration: TBeforeCrossHMoveEvent = procedure (Sender: TObject; WhichCrossHair: TCrossHair; dx, dy: integer; var AllowMove: boolean) of object;

The TBeforeCrossHMoveEvent is triggered by an RChart (or Contourplot or SmithChart) whenever the user interactively starts to move any of the crosshairs (therefore the property MouseAction has to be set to maDragCrossH). The parameter WhichCrossHair points to the crosshair which will be moved, the parameters dx and dy contain the differences in pixels between the current crosshair position and the intented new one.

In order to prevent the crosshair from moving set the variable parameter AllowMove to false.


Last Update: 2016-Jun-27