Hello Sebastian
 

>     Just my 2 cents: If you want to develop complex widgets with qooxdoo it
>     might be better to use the renderer branch.
>
>     Please take a look at managers/QxDragAndDropManager.js. At line 218 you
>     should find the following functions:
>
>     proto._handleMouseDown = function(e)
>
>     There is currently no check which button is pressed. We could probably
>     add a new property to QxDragAndDropManager on which buttons to react.
>     But this is not really nice, because it changes the behavior for all
>     widgets on the page. Better it would be in my opinion to let the source
>     widget say if the settings in the event are correctly, to be handled as
>     a dragstart event. What's about a function "_checkDragStartEvent" in
>     QxWidget as an empty placeholder which will be executed here and must
>     return a boolean value. If it's false we directly return from the
>     _handleMouseDown functions and the drag and drop action is canceled.
>
>     Regards,
>
>     Sebastian
>
>
I've inserted an empty placeholder in QxWidget and i override it in my class, and if this function returns false in my _handleMouseDown function then indeed the "dragstart" event is not fired but neither the "mousedown" event will not propagate to the QxWidget kids ( i have other QxAtom class inside my Qxwidget-derived class), so i will need also this event to go down in the mouse event manager.

I'm afraid i will need the event mechanism to propagate in the normal way and not to stop on my _handleMouseDown function but also the "dragstart" event should be fired only when i drag the mouse with the left button down.

Can you help me with another advise?

Thank you very much


Daniel

Reply via email to