Is there a default margin for the function within ?
I watch it when using this function. The screen result is diifferent (4 pixels)
Code: Select all
function fRectInside pGrc1,pGrc2
put within(grc pGrc1,the topleft of grc pGrc2) into DTL
put within(grc pGrc1,the topRight of grc pGrc2) into DTR
put within(grc pGrc1,the bottomRight of grc pGrc2) into DBR
put within(grc pGrc1,the bottomLeft of grc pGrc2) into DBL
put DTL&","&DTR&","&DBR&","&DBL into rRectInside
return rRectInside
end fRectInside
Jean-Marc