PIGGraph

OnPan

This event occurs when the user presses CTRL and LEFTMOUSE to pan the graphic (move the view point). In the current release, you can't cancel the operation. Just set new values to the old values.

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

Sender is the object in itself;
XMinBefore, XMaxBefore, YMinBefore and YMaxBefore are the limits before the pan;
XMinAfter, XMaxAfter, YMinAfter and YMaxAfter are the new limits set by user's pan.

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

OnZoom

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