From: francesco A. <fa...@we...> - 2001-01-25 17:30:23
|
I think that you must use the cancelDrag at the event onDragStart handleListener.ondragstart=3Dfunction(e)=20 { DragEvent.cancelDrag() } with me the function don't see the cancelDrag try it i have see a little the code =20 appear that the dragmove is called after that the layer is be moved so the cancelDrag don't function I think.... Hi Francesco ----- Original Message -----=20 From: Michael Pemberton=20 To: dyn...@li...=20 Sent: Thursday, January 25, 2001 1:56 PM Subject: Re: [Dynapi-Dev] Dragging and Cancelling Thanks for all the help, but that still doesn't solve my problem. I = want to have a scetion of a layer used as a handle. It should be a = simple case of detecting the location of the mouse and allowing the = click if it is within the specified region.=20 I want to reduce the # of additional layers. Especially when there = are already too many being used in my widgets to begin with. My problem = is that dragCancel seems to not have any effect on the drag. I can't = seem to cancel a drag event from being triggered.=20 Does anyone have an example of dragCancel being used successfully?=20 Richard Bennett wrote:=20 Hi,The beige bgcolor was a dead give-away I'm afraid ;o)Anyway, it's = up with your other = masterpiece:http://www.resass.f2s.com/?menu=3Dexamples&node=3D8 Cheers,=20 Richard Bennett ma...@ri...=20 www.richardinfo.com=20 (Everything running on, and ported to the 19/12/2000 snapshot of = DynAPI2)=20 ----- Original Message ----- From: Glen Deas To: dyn...@li... Sent: Tuesday, January 23, 2001 5:24 PM Subject: Re: [Dynapi-Dev] Dragging and Cancelling Here's a handle I use.=20 ----- Original Message ----- From: Michael Pemberton To: dyn...@li... Sent: Tuesday, January 23, 2001 8:06 AM Subject: [Dynapi-Dev] Dragging and Cancelling The cancelDrag method of the drag event doesn't seem to do = anything. Does anyone have a working example of it in action?=20 I am trying to limit dragging to only a section of a layer ( so = that sragging can only happen if they click in a specific section of the = layer). I tried placing a e.cancelDrag() call in the dragstart = eventlistener but that didn't help. Is there a simple way of setting up = a handle type setup for dragging a layer?=20 --=20 Michael Pemberton=20 mp...@ph...=20 ICQ: 12107010=20 _______________________________________________ Dynapi-Dev = mailing list Dyn...@li... = http://lists.sourceforge.net/lists/listinfo/dynapi-dev --=20 Michael Pemberton=20 mp...@ph...=20 ICQ: 12107010=20 _______________________________________________ Dynapi-Dev mailing = list Dyn...@li... = http://lists.sourceforge.net/lists/listinfo/dynapi-dev |