From: Michael P. <mp...@ph...> - 2001-01-23 13:10:08
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> The cancelDrag method of the drag event doesn't seem to do anything. Does anyone have a working example of it in action? <p>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 <tt>e.cancelDrag()</tt> 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? <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> </html> |
From: francesco A. <fa...@we...> - 2001-01-23 14:13:19
|
I have see that the DragEvent.setDragBoundary not function correctly = when i limit the area of dragging and when the layer draggable is into another layer When i try to drag this layer the coord x and y of the layer are = crazy... francesco ----- Original Message -----=20 From: Michael Pemberton=20 To: dyn...@li...=20 Sent: Tuesday, January 23, 2001 2:06 PM 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 |
From: Michael P. <mp...@ph...> - 2001-01-23 14:29:07
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <body bgcolor="#FFFFFF"> i used a statusbar message to test if the coords were correct. It only seems to be that the event is not being cancelled correctly. I'll keep looking into it. I may be able to stop the actual mouse click that starts the dragging for reaching the drag listener. <p>francesco AGATI wrote: <blockquote TYPE=CITE><style></style> <font face="Arial"><font size=-1>I have see that the DragEvent.setDragBoundary not function correctly when i limit</font></font><font face="Arial"><font size=-1>the area of dragging and when the layer draggable is into another layer</font></font> <font face="Arial"><font size=-1>When i try to drag this layer the coord x and y of the layer are crazy...</font></font> <font face="Arial"><font size=-1>francesco</font></font> <blockquote dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <div style="FONT: 10pt arial">----- Original Message -----</div> <div style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><b>From:</b> <a href="mailto:mp...@ph..." title="mp...@ph...">Michael Pemberton</a></div> <div style="FONT: 10pt arial"><b>To:</b> <a href="mailto:dyn...@li..." title="dyn...@li...">dyn...@li...</a></div> <div style="FONT: 10pt arial"><b>Sent:</b> Tuesday, January 23, 2001 2:06 PM</div> <div style="FONT: 10pt arial"><b>Subject:</b> [Dynapi-Dev] Dragging and Cancelling</div> The cancelDrag method of the drag event doesn't seem to do anything. Does anyone have a working example of it in action? <p>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 <tt>e.cancelDrag()</tt> 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? <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> _______________________________________________ Dynapi-Dev mailing list Dyn...@li... <A HREF="http://lists.sourceforge.net/lists/listinfo/dynapi-dev">http://lists.sourceforge.net/lists/listinfo/dynapi-dev</A></blockquote> </blockquote> </body> </html> |
From: francesco A. <fa...@we...> - 2001-01-23 14:59:48
|
I think that the coordinate x adn y of the layer are calculated no good = because are wrong the coordinate of hte parent layer ----- Original Message -----=20 From: Michael Pemberton=20 To: dyn...@li...=20 Sent: Tuesday, January 23, 2001 3:33 PM Subject: Re: [Dynapi-Dev] Dragging and Cancelling i used a statusbar message to test if the coords were correct. It = only seems to be that the event is not being cancelled correctly. I'll = keep looking into it. I may be able to stop the actual mouse click that = starts the dragging for reaching the drag listener.=20 francesco AGATI wrote:=20 I have see that the DragEvent.setDragBoundary not function correctly = when i limitthe area of dragging and when the layer draggable is into = another layer When i try to drag this layer the coord x and y of the = layer are crazy... francesco=20 ----- Original Message ----- From: Michael Pemberton To: dyn...@li... Sent: Tuesday, January 23, 2001 2:06 PM 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 _______________________________________________ Dynapi-Dev mailing = list Dyn...@li... = http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: Michael P. <mp...@ph...> - 2001-01-23 15:09:10
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <body bgcolor="#FFFFFF"> the x and y values are relative to the layer that I want to drag. However, I want to only allow the layer to be dragged if they click in a particular section (such as a title bar). All the co-ords are correct, I just need to find a way of stopping the drag from starting if the mouse is outside my specified region. <p>francesco AGATI wrote: <blockquote TYPE=CITE> <font face="Arial"><font size=-1>I think that the coordinate x adn y of the layer are calculated no good because are wrong the coordinate of hte parent layer</font></font> <blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <div style="FONT: 10pt arial">----- Original Message -----</div> <div style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><b>From:</b> <a href="mailto:mp...@ph..." title="mp...@ph...">Michael Pemberton</a></div> <div style="FONT: 10pt arial"><b>To:</b> <a href="mailto:dyn...@li..." title="dyn...@li...">dyn...@li...</a></div> <div style="FONT: 10pt arial"><b>Sent:</b> Tuesday, January 23, 2001 3:33 PM</div> <div style="FONT: 10pt arial"><b>Subject:</b> Re: [Dynapi-Dev] Dragging and Cancelling</div> i used a statusbar message to test if the coords were correct. It only seems to be that the event is not being cancelled correctly. I'll keep looking into it. I may be able to stop the actual mouse click that starts the dragging for reaching the drag listener. <p>francesco AGATI wrote: <blockquote TYPE="CITE"><style></style> <font face="Arial"><font size=-1>I have see that the DragEvent.setDragBoundary not function correctly when i limitthe area of dragging and when the layer draggable is into another layer</font></font> <font face="Arial"><font size=-1>When i try to drag this layer the coord x and y of the layer are crazy...</font></font> <font face="Arial"><font size=-1>francesco</font></font> <blockquote dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <div style="FONT: 10pt arial">----- Original Message -----</div> <div style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><b>From:</b> <a href="mailto:mp...@ph..." title="mp...@ph...">Michael Pemberton</a></div> <div style="FONT: 10pt arial"><b>To:</b> <a href="mailto:dyn...@li..." title="dyn...@li...">dyn...@li...</a></div> <div style="FONT: 10pt arial"><b>Sent:</b> Tuesday, January 23, 2001 2:06 PM</div> <div style="FONT: 10pt arial"><b>Subject:</b> [Dynapi-Dev] Dragging and Cancelling</div> The cancelDrag method of the drag event doesn't seem to do anything. Does anyone have a working example of it in action? <p>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 <tt>e.cancelDrag()</tt> 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? <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> _______________________________________________ Dynapi-Dev mailing list Dyn...@li... <a href="http://lists.sourceforge.net/lists/listinfo/dynapi-dev">http://lists.sourceforge.net/lists/listinfo/dynapi-dev</a></blockquote> </blockquote> _______________________________________________ Dynapi-Dev mailing list Dyn...@li... <A HREF="http://lists.sourceforge.net/lists/listinfo/dynapi-dev">http://lists.sourceforge.net/lists/listinfo/dynapi-dev</A></blockquote> </blockquote> <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> </body> </html> |
From: Glen D. <gle...@gt...> - 2001-01-23 16:29:27
|
Here's a handle I use. ----- Original Message -----=20 From: Michael Pemberton=20 To: dyn...@li...=20 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 |
From: Richard B. <ma...@ri...> - 2001-01-24 04:58:26
|
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, Richard Bennett ma...@ri... www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of = DynAPI2) ----- Original Message -----=20 From: Glen Deas=20 To: dyn...@li...=20 Sent: Tuesday, January 23, 2001 5:24 PM Subject: Re: [Dynapi-Dev] Dragging and Cancelling Here's a handle I use. ----- Original Message -----=20 From: Michael Pemberton=20 To: dyn...@li...=20 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 |
From: Michael P. <mp...@ph...> - 2001-01-25 12:59:50
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <body bgcolor="#FFFFFF"> 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. <p>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. <p>Does anyone have an example of dragCancel being used successfully? <p>Richard Bennett wrote: <blockquote TYPE=CITE><style></style> <font face="Arial"><font size=-1>Hi,</font></font><font face="Arial"><font size=-1>The beige bgcolor was a dead give-away I'm afraid ;o)</font></font><font face="Arial"><font size=-1>Anyway, it's up with your other masterpiece:</font></font><font face="Arial"><font size=-1><a href="http://www.resass.f2s.com/?menu=examples&node=8">http://www.resass.f2s.com/?menu=examples&node=8</a></font></font> <font face="Arial"><font size=-1>Cheers,</font></font> <br><font face="Arial"><font size=-1>Richard Bennett</font></font> <font face="Arial"><font size=-1><a href="mailto:ma...@ri...">ma...@ri...</a></font></font> <br><font face="Arial"><font size=-1><a href="http://www.richardinfo.com">www.richardinfo.com</a></font></font> <br><font face="Arial"><font size=-1>(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)</font></font> <blockquote dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <div style="FONT: 10pt arial">----- Original Message -----</div> <div style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><b>From:</b> <a href="mailto:gle...@gt..." title="gle...@gt...">Glen Deas</a></div> <div style="FONT: 10pt arial"><b>To:</b> <a href="mailto:dyn...@li..." title="dyn...@li...">dyn...@li...</a></div> <div style="FONT: 10pt arial"><b>Sent:</b> Tuesday, January 23, 2001 5:24 PM</div> <div style="FONT: 10pt arial"><b>Subject:</b> Re: [Dynapi-Dev] Dragging and Cancelling</div> <a href="http://209.235.102.9/~san12028/handle/handle.html">Here's a handle I use.</a> <blockquote dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <div style="FONT: 10pt arial">----- Original Message -----</div> <div style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><b>From:</b> <a href="mailto:mp...@ph..." title="mp...@ph...">Michael Pemberton</a></div> <div style="FONT: 10pt arial"><b>To:</b> <a href="mailto:dyn...@li..." title="dyn...@li...">dyn...@li...</a></div> <div style="FONT: 10pt arial"><b>Sent:</b> Tuesday, January 23, 2001 8:06 AM</div> <div style="FONT: 10pt arial"><b>Subject:</b> [Dynapi-Dev] Dragging and Cancelling</div> The cancelDrag method of the drag event doesn't seem to do anything. Does anyone have a working example of it in action? <p>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 <tt>e.cancelDrag()</tt> 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? <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> _______________________________________________ Dynapi-Dev mailing list Dyn...@li... <A HREF="http://lists.sourceforge.net/lists/listinfo/dynapi-dev">http://lists.sourceforge.net/lists/listinfo/dynapi-dev</A></blockquote> </blockquote> </blockquote> <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> </body> </html> |
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 |