Hi Andy
TImageEnVect allows for ObjLeft > ObjRight and ObjTop > ObjBottom to handle line drawing (know which way the line is pointing (TR->BL or TL->BR).
So please change your code as follows:
ImageEnVect1.GetObjRect( 0, aRect );
l := imin( aRect.Left, aRect.Right ) ;
t := imin( aRect.Top, aRect.Bottom ) ;
xx:=trunc( l * ( ImageEnVect1.Zoom / 100 ));
yy:=trunc( t * ( ImageEnVect1.Zoom / 100 ));
ImageEnVect1.SetViewXYSmooth( xx - 5, yy - 5 );
Nigel
Xequte Software
www.xequte.com
nigel@xequte.com