I've seen a request for this on the help list and thought it would be
fun. I've extended my gragging to no involve a grid option.
Just add the following code to the drag onmousemove event after the
dragBoundry if section:
if (lyr.grid) {
x=Math.floor(x/lyr.grid)*lyr.grid;
y=Math.floor(y/lyr.grid)*lyr.grid;
};
Then just set layer.drag to the value you size of the grid lines.
--
Michael Pemberton
mp...@ph...
ICQ: 12107010
|