Well, I think Benoit's DynArea library is the best
solution this kinda thing, but I guess it's still in
the making.

Here's a quick fix:

var p = dynapi.document.addChild(new
DynLayer(null,50,50,200,200,'silver'))
var a=p.addChild(new DynLayer(null,10,10,20,20,'red'))
DragEvent.enableDragEvents(p);
a.addEventListener({
        onmousedown:function(e){
                e.preventBubble();
        }
});


--
Raymond Irving

--- Daniel Tiru <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I wanted to make a draggable menu... and i just want
> the top to be draggable, but not the rest of the
> layers.
> 
> my code:
> var p = dynapi.document.addChild(new
> DynLayer(null,50,50,200,200,'silver'))
> var a=p.addChild(new
> DynLayer(null,10,10,20,20,'red'))
> DragEvent.enableDragEvents(p);
> DragEvent.disableDragEvents(a);
> 
> When trying to drag p it works, and aswell with a,
> but i dont want a to be draggable, how do i make
> that happen?
> 
> Thanks in advance
> Daniel
> 
> 
>
-------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built
> ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are
> available now.
> Download today and enter to win an XBOX or Visual
> Studio .NET.
>
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to