Try the cover layer trick.
After setting the HTML content (if at all), add a new child layer. Set the
child layer to be equal to the size of the main layer. Re-direct click an
mouse move requests from the child layer to the parent layer.
In a version I'm working with, there is no need to re-direct events.
It's automatic.
----- Original Message -----
From: "Sam Douglass" <sa...@eb...>
To: <dyn...@li...>
Sent: Wednesday, November 15, 2000 8:49 PM
Subject: [Dynapi-Help] newbie ? re: dragging
> Here's another basic question. I'm trying to make a layer draggable. I
> followed the
> tutorials on dragging:
>
> DragEvent.setDragBoundary(testlayer)
> DragEvent.enableDragEvents(testlayer)
>
> OK, my testlayer appeared to be draggable in Navigator, but not in IE.
> From playing
> around with the code it seems like I have to be able to click on the
> background of
> the layer (eg somewhere where there is no image or table or form
> element) to drag
> the layer, in both browsers. Is there some way to drag a layer by
> clicking anywhere
> on it? Or in a specific region of the layer? I suspect I've probably
> made some simple
> mistake that is causing dragging to behave in this unexpected way, but I
> just can't
> figure out what I'm doing wrong. Any help would be greatly appreciated!
>
> Sam Douglass
> eBondTrade
> www.ebondtrade.com
> _______________________________________________
> Dynapi-Help mailing list
> Dyn...@li...
> http://lists.sourceforge.net/mailman/listinfo/dynapi-help
|