PIGGraph

OnSelection

This event occurs when the user presses LEFTMOUSE and selects a region to zoom in the graph. In the current release, you can't cancel the operation.

PIGGraph1Selection(Sender: TObject; XMin, XMax, YMin, YMax: Real);

Sender is the object in itself;
XMin, XMax, YMin and YMax are the new limits defined by the user's selection (at this point, the refresh is done).

{convert to a square selection}
with PIGGraph1 do
XMax := XMin+(YMax-YMin);

OnZoom

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