Hey,
Thats a problem we are aware of. In the end, it comes down to the fact that we 
can not control which handler are included and which are not. If it would be 
possible to exclude the qx drag & drop handler, it would be easy for you to 
register your custom one instead of the qx one. Thats what were working on, so 
you might see some changes to that in the upcoming release as well.
Regards,
Martin


Am 17.01.2012 um 18:35 schrieb John Spackman:

Hi,

I want to be able to customise the Drag & Drop behaviour in Qx so that I can 
adjust how & when events are fired and pick up on Drag & Drop globally but 
there's isn't an API to allow it.  Even though event handlers are developed as 
individual modules and "registered" they cannot be replaced with any other 
implementation, which seems like an unfortunate restriction – effectively 
handlers are global per window.

I've hacked around this by changing the classname of my replacement class and 
tricking qx.event.Manager to cache my class instance instead of the real one 
but obviously it's not a "recommended" approach, it will only work on the 
specified window instance, and I'm concerned that changes to the Qx framework 
could break it in the future.

This is the code:
myapp.MyDragDropHandler.classname = qx.event.handler.DragDrop.classname;
var handler = 
Registration.getManager(window).getHandler(myapp.MyDragDropHandler);
qx.core.Assert.assertTrue(handler.constructor === myapp.MyDragDropHandler, 
"Cannot install");

Can this be changed?  EG add a generic way to replace event handlers?

John
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to