In response to dragging layers that are children of
other layers the DragEvent class will add two new
functions to the DynLayer class:

setDragEnabled(b,useIcon)
setDragIcon(html,w,h,color,image)

The drag icon is simply another dynlayer that the
system will add to the document. This layer can act as
an outline or icon for the layer that's being dragged

It will even allow you to create you own drag icons
for use with the system. This will allow us to drag
any layer anywhere on the document

example:

var l = new DynLayer('Hello');
l.setDragEnabled(true,true);// enable dragging and use
drag icon
l.setDragIcon('Hello') 
// ^ this will use a layer that DragEvent
// will add to the document

or we could create our own drag icon

var dragicon = new DynLayer(null,0,0,16,16,'silver');
dynapi.document.addChild(dragicon);

l.setDragIcon(dragicon);

Now whenever the user drags layer "l" the drag icon
will appear and be dragged instead of the orginal
layer. All drag events will be triggered on the
original layer.

Do you think this will solve the problem?

--
Raymond Irving

--- Háber János <[EMAIL PROTECTED]> wrote:
> 2003. október 2. 18.39 dátummal Háber János ezt
> írta:
> > Hi!
> >
> > I want to make a draggable Item for List,Tree,Grid
> element...
> I have 2 conception how to make it.
> 1. I create a virtual List (a DynElement) element.
>       - Can drag all items on the desktop
>       - Can't use effects, slide, fade, etc... (I think)
> 2. Create a Normal list element and I "cut" the item
> anyway , if, the drag is 
> successfuly, I cut finaly, because the drag is not
> successfuly , put back the 
> element into the List/Tree/etc...
>       -Can use effect on the full table
>       -I don't know how to "cut" the element. I can
> remove the element, and put 
> into the dynapi.document, because I can't set the
> position correctily?
> 
> Cow
> 
> 
> 
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to