Hi everyone,
I am currently trying to create a Widget "Over" acting as an overlay
to another widget "Under". "Over" has exacty the same size and
position as "Under", and is displayed over it. What I'd like to
achieve is for all events, and especially Mouse events, to pass
through "Over" and reach "Under" as if "Over" didn't exist. There
doesn't seem to be a way to get the browser to ignore "Over" as far as
target selection is concerned, and so I have tried to simulate this
effect by handling the event in "Over", recreating it, and dispatching
it to "Under". I have tried both .clone() and manually creating a new
Event to recreate the event prior to dispatching the new one, but I
systematically get a NS_ERROR_ILLEGAL_VALUE from FF when I dispatch my
new event with dispatchEvent().
My questions are: is there a qooxdoo built-in way to achieve my effect
that I didn't find? Does anyone know of sample code which does what I
just described?
Find below a sample of what I wrote to get this to work, but I'm not
sure I'm in the right way.
----------
dock.addListener("click", function(e) {
this.debug("Bubbling click in dock targeting " + e.getTarget());
if (e.getTarget() == this){
e.stopPropagation();
var cloneEvent = new qx.event.type.Mouse();
// here I
also tried cloneEvent = e.clone();
cloneEvent.init(e, document.body, null, true, true);
document.body.dispatchEvent(cloneEvent);
}
}
, dock, false);
----------
Thanks in advance for any pointer,
V.
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel