Hello Doug,

it looks pretty fine.
But I have two problems.
1.)Not any group should be moved.
2.)I take the svg document by using PHP callback function. then SVG Document
is undefined.
The Onload function wouldn´t called.
Any solution about this?

Burkhard Stollenwerk


----- Original Message -----
From: "Doug Schepers" <[EMAIL PROTECTED]>
To: <svg-developers@yahoogroups.com>
Sent: Friday, February 04, 2005 1:56 PM
Subject: RE: [svg-developers] Drag and Drop for groups


>
>
> Thanks for the kind words, Philippe.
>
> As you said, it's a pretty trivial problem, unless I'm misunderstanding
> something. I made a slight alteration to my sample, to show how to move
> groups:
>
> http://svg-whiz.com/svg/DragAndDropGroup.svg
>
> Regards-
> Doug
>
> doug . schepers  @ vectoreal.com
> www.vectoreal.com ...for scalable solutions.
>
>
> Philippe Lhoste wrote:
> |
> | Jérôme Tricand de la Goutte wrote:
> | > hello Burkhard.
> | >
> | > I don't have too much time now, i'm sorry The main issue for this
> | > problem is handling the mouse.
> | > You must detect onmousedown event, memorize it and the
> | object on which you've clicked, then react to onmousemove by
> | moving the object, until onmouseup is detected.
> | >
> | > The onmousemove and onmouseup can be fired on the SVG
> | document itself, but onmousedown must be fired on the group only.
> | >
> | > I'll try to make code when I'va time
> |
> | Well, usually I recommand to take a look at the good example
> | given by Doug Schepers at http://svg-whiz.com/samples.html
> | (DragAndDrop example).
> | It handles correctly transformations (zoom and pan) and is
> | quite robust.
> | The sample apply to elements only, but it should be easy,
> | given the hints provided by Jérôme, to apply it to groups.
> |
> | --
> | Philippe Lhoste
> | --  (near) Paris -- France
> | --  http://Phi.Lho.free.fr
> | --  For servers mangling my From and Reply-To fields,
> | --  please send private answers to PhiLho(a)GMX.net
> | --  --  --  --  --  --  --  --  --  --  --  --  --  --
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 2/1/2005
>
>
>
>
> -----
> To unsubscribe send a message to:
[EMAIL PROTECTED]
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
> ----
> Yahoo! Groups Links
>
>
>
>
>
>
>



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to