Daniel Dumitrescu schrieb:
Hello Sebastian

I'm using the HEAD version of qooxdoo

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




Daniel

On 12/5/05, *Sebastian Werner* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Daniel Dumitrescu schrieb:
     > Hello, guys

    Hi Daniel,

    please tell me first, if you use the HEAD or renderer branch of qooxdoo.

    Sebastian

     >
     > I'm continuing my work on a very complicated QooxDoo widget and i
    would
     > like to have your advise to solve an issue.
     >
     > On my widget i need Drag & Drop event but i saw that the "dragstart"
     > event is fired both when
     > i have left button or right button down but i need a distinction
    between
     > these two elements,
     > so i would need something like the drag & drop event must fire
    only when
     > I drag the mouse with the left button down,
     > not also with the right button down.
     >
     > There is an already implemented way to do this or should i make the
     > difference in my drag & drop event handling functions?
     >
     > Thank you
     >
     > Daniel
     >



    -------------------------------------------------------
    This SF.net email is sponsored by: Splunk Inc. Do you grep through
    log files
    for problems?  Stop!  Download the new AJAX search engine that makes
    searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
    http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
    <http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click>
    _______________________________________________
    Qooxdoo-devel mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
    <https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel>





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to