From: Lars V. N. <LV...@gi...> - 2003-02-12 20:10:04
|
Hi Jesse, I'm using DynAPI 2 to drag a layer with the mouse. First I used to extract the coords from the event variable (e.g. in onDragEnd), but that (obviously) stayed constant since it was relative to the moved layer. But testing the "top" and "left" style attributes for the layer worked, it'll give you the amount moved. Utilize that in onDragMove/onDragEnd to move your other layer and you should be set. Best regards/Med venlig hilsen Lars V. Nielsen ----- Original Message ----- From: "Jesse Vitrone" <je...@6t...> To: <dyn...@li...> Sent: Wednesday, February 12, 2003 6:51 PM Subject: [Dynapi-Help] how far did the layer move? > I have a 2 layers, and when one moves, I want the other one to move, so > they move as a group. > Shouldn't be hard to do, but I don't know how to tell how far the first > layer has moved, that way > my move callback can move the other one by the same distance. > > > Is there something that I can look at when I'm in the ondragmove > listener to see how far it's moved? > > Thanks in advance, > Jesse > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |