PIGGraph

OnMouseMoveShowPoints

This event occurs when the mouses move over the graphic. This event is similar to the basic MouseMove event but it gives you values under the mouse's cursor if the property ShowValuesUnderCursor is true.

PigGraph1MouseMoveShowPoints(Sender: TObject; CurrentX, XBefore, XAfter: Real; YBefore, YAfter: array of Real);

Sender is the object in itself
CurrentX is the cursor's position value in relation with XMin and XMax
XBefore is the X value of the preceding point
XAfter is the X value of the following point
YBefore is the Y value of the preceding point
YAfter is the Y value of the following point

if XAfter-XBefore <> 0 then
fSlope := (YAfter-YBefore)/(XAfter-XBefore)
else
fSlope := 1E50;

ShowValuesUnderCursor

© 1996,1997 Productions Informatiques GaMa.
All rights reserved. Tous droits réservés.