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