Patches item #414300, was updated on 2001-04-06 07:23
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=414300&group_id=5757

Category: DynAPI 2 Event
Group: None
Status: Open
Priority: 5
Submitted By: Michael Pemberton (mpember)
Assigned to: Nobody/Anonymous (nobody)
Summary: DragDrop Advancement

Initial Comment:
The following code should all for using children of children of children (etc.) as 
drop targets.

DynObject.prototype.DragDrop=function(s){
        if (!this.children.length>0) return false;
        for (var i in this.children) {
                var ch=this.children[i];
                var chX=ch.getPageX(), chY=ch.getPageY();
                var sX=s.getPageX(), sY=s.getPageY();
                if (chX<sX && chX+ch.w>sX+s.w && chY<sY && chY+ch.h>sY+s.h) {
                        if (ch.DragDrop(s)) return true;
                        ch.invokeEvent("drop");
                        return true;
                };
        };
        return false;
};

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=414300&group_id=5757

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to