PIGGraph

OnZoom

This event occurs at every change of limits

PigGraph1Zoom(Sender: TObject; XMinBefore, XMaxBefore, YMinBefore, YMaxBefore: Real; var XMinAfter, XMaxAfter, YMinAfter, YMaxAfter: Real);

Sender is the object in itself;
XMinBefore, XMaxBefore, YMinBefore and YMaxBefore are the limits before;
XMinAfter, XMaxAfter, YMinAfter and YMaxAfter are the new limits.

You can change new limits to handle special cases or cancel the operation.

{save limits to maintain an UNDO list}
MySaveLimitsFunction(XMinBefore,XMaxBefore,YMinBefore,YMaxBefore);

OnPan , OnSelection

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