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
[EMAIL PROTECTED]
ICQ: 12107010
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev