Here are a couple of examples from Richard's site
http://www.your-site.com/~rinfo//examples/Glen_Deas_Examples/drag_by_handle.
html

http://www.your-site.com/~rinfo//examples/Glen_Deas_Examples/drag_another_la
yer_example.html

Glen Deas

----- Original Message -----
From: "Matt Fair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, October 12, 2001 6:21 PM
Subject: [Dynapi-Help] layer with a drag handle


> Is there a way to attach a handle layer to another layer.
> For example:
>
> [Drag Here]+---------------------------+
>             |                           |
>             |      Layer                |
>             +---------------------------+
>
> So when you click on the "drag here" layer everything will move.
> I have thought about doing something like:
>
> draghere=new dynlayer();
> draghere.setHTML("Drag Here");
> draghere.moveTo(layer.getX()-draghere.getContentWidth(),layer.getY());
> DynAPI.document.addChild(draghere);
>
> But the problem that I have with this is how do I have the layer move if
> it isn't a part of it, and if I do get it to work, since they are
> different objects instead of child and parrent objects they may separate
> from one of eachother and have a delay (wich would look kinda wierd).
> Also I would like to have a parent or child of the layer to simplify
things.
>
> Any sugestions?
>
> Thanks
> Matt
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to