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> |