Hi Jean-Noël,

Am 10.06.2010 03:30, schrieb Jean-Noël Rivasseau:
> I am coding a basic drag and drop and everything is working fine
> except I get the no-drop cursor during the drag. In my particular case
> I don't need to have a drop target for this drag&  drop. What I would
> like is remove the additional no-drop cursor altogether and change the
> global cursor in the window while I am dragging and droping. I could
> use the "move" global cursor, even better would be a cursor with a
> hand (on my Linux KDE desktop there is that cursor).
>
> How can I do that on an Inline application? I tried to call
> applciation.getRoot().setGlobalCursor("move") but it does not do
> anything. And I dont have any idea how to disable the Qooxdoo
> additional cursors during a drag&  drop.
The no-drop cursor is always showed whenever the drop is not permitted. 
So if you do not setup any widget as drop target the cursor will be 
visible all the time.

If you only want to change the appearance of the cursor (e.g. just hide 
the "nopdrop" cursor) you can easily edit the "dragdrop-cursor" appearance.

--snip--
// Modern appearance
"dragdrop-cursor" :
{
   style : function(states)
   {
     var icon = "nodrop";

     if (states.copy) {
       icon = "copy";
     } else if (states.move) {
       icon = "move";
     } else if (states.alias) {
       icon = "alias";
     }

     return {
       source : "decoration/cursors/" + icon + ".gif",
       position : "right-top",
       offset : [ 2, 16, 2, 6 ]
     };
   }
},
--snip--

So all you need is to change the "source" according  to the current 
state e.g. just ignore the "nodrop" state and set no icon source.

Hope this helps you further.

cheers,
   Alex

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to