From: <bo...@co...> - 2003-10-01 19:54:56
|
Hi! I have an object (example DynLayer) name "b". It's have a parent DynLayer "b". I accepted the DragEvent on "a", and I want tu cut from "b" (to the top). If i remove the element, it's a bad think. I try to remove the element, because it's not work. I try to change the parent variable: ondragstart: function(e) { var o=e.getSource(); o.parent=o.parent.parent; }, beacuse nothing happened. Any idea? Cow |
From: Raymond I. <xw...@ya...> - 2003-10-01 20:07:49
|
You want to destroy from "b" (parent) to "a" (child)? -- Raymond Irving --- Háber János <bo...@co...> wrote: > Hi! > > I have an object (example DynLayer) name "b". It's > have a parent DynLayer "b". > I accepted the DragEvent on "a", and I want tu cut > from "b" (to the top). > If i remove the element, it's a bad think. I try to > remove the element, > because it's not work. > I try to change the parent variable: > ondragstart: > function(e) > { > var o=e.getSource(); > o.parent=o.parent.parent; > }, > beacuse nothing happened. > > Any idea? > > Cow > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: <bo...@co...> - 2003-10-01 20:11:22
|
2003. okt=F3ber 1. 22.07 d=E1tummal Raymond Irving ezt =EDrta: > You want to destroy from "b" (parent) to "a" (child)? No I want to move to the upper layer the child element. (in the example I want= to=20 move up 2 level the "a" element) Cow ICQ: 73963523 |
From: Raymond I. <xw...@ya...> - 2003-10-01 20:48:57
|
Ok. Then you should use the setZIndex() DynLayer function -- Raymond Irving --- Háber János <bo...@co...> wrote: > 2003. október 1. 22.07 dátummal Raymond Irving ezt > írta: > > You want to destroy from "b" (parent) to "a" > (child)? > No > I want to move to the upper layer the child element. > (in the example I want to > move up 2 level the "a" element) > > Cow > > ICQ: 73963523 > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: <bo...@co...> - 2003-10-02 09:33:37
|
2003. okt=F3ber 1. 22.48 d=E1tummal Raymond Irving ezt =EDrta: > Ok. Then you should use the setZIndex() DynLayer > function I try, because both object Z index is 1; The a booject is the b object child. If I change the ZIndex nothing happend. Cow |
From: Raymond I. <xw...@ya...> - 2003-10-02 14:18:24
|
I can't fully understand what's going on. You'll have to supply an example. -- Raymond Irving --- Háber János <bo...@co...> wrote: > 2003. október 1. 22.48 dátummal Raymond Irving ezt > írta: > > Ok. Then you should use the setZIndex() DynLayer > > function > I try, because both object Z index is 1; > The a booject is the b object child. If I change the > ZIndex nothing happend. > Cow > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: <bo...@co...> - 2003-10-02 16:38:41
|
Hi! I want to make a draggable Item for List,Tree,Grid element... Cow |
From: <bo...@co...> - 2003-10-02 17:23:03
|
2003. okt=F3ber 2. 18.39 d=E1tummal H=E1ber J=E1nos ezt =EDrta: > 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=20 successfuly, I cut finaly, because the drag is not successfuly , put back t= he=20 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= =20 into the dynapi.document, because I can't set the position correctily? Cow |
From: Raymond I. <xw...@ya...> - 2003-10-03 14:47:52
|
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 <bo...@co...> 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 > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: <bo...@co...> - 2003-10-03 15:36:31
|
> Do you think this will solve the problem? Yes it's solve the problem :)) Cow |