Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Cursor while drag and drop
Cursor while drag and drop [message #224306] Fri, 13 October 2006 10:47 Go to next message
Eclipse UserFriend
Originally posted by: siddharth.star.gmail.com

Hi,
I need to change the cursor(from SharedCursors.CURSOR_TREE_ADD to a custom
cursor) while doing a drag and drop from the palette. I could implement it
for click and drop from the palette wherein I have over-ridden the API
createTool() of ToolEntry to add a line of code
((CreationTool)tool).setDefaultCursor(createCursor()); where
createCursor() returns the Custom Cursor that I wish to show.
My feeling is that this should work for drag and drop too but it isn't and
is just working for click and drop from palette. Any help in poining the
flaw in my logic/ understanding would be highly appreciated.
Thanks,
Siddharth
Re: Cursor while drag and drop [message #225039 is a reply to message #224306] Tue, 24 October 2006 15:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

The cursor during DND is provided by the platform. It is not from
SharedCursor and SWT doesn't let you change it.

"Siddharth" <siddharth.star@gmail.com> wrote in message
news:d0af976ac654b603700be6490f316f23$1@www.eclipse.org...
> Hi,
> I need to change the cursor(from SharedCursors.CURSOR_TREE_ADD to a custom
> cursor) while doing a drag and drop from the palette. I could implement it
> for click and drop from the palette wherein I have over-ridden the API
> createTool() of ToolEntry to add a line of code
> ((CreationTool)tool).setDefaultCursor(createCursor()); where
> createCursor() returns the Custom Cursor that I wish to show.
> My feeling is that this should work for drag and drop too but it isn't and
> is just working for click and drop from palette. Any help in poining the
> flaw in my logic/ understanding would be highly appreciated.
> Thanks,
> Siddharth
>
Re: Cursor while drag and drop [message #225081 is a reply to message #225039] Wed, 25 October 2006 04:33 Go to previous message
Eclipse UserFriend
Originally posted by: siddharth.star.gmail.com

Thanks for your reply. It seems that keeping this in mind there's nothing
much a GEF developer can do to change the look of the cursor for the drag
and drop operation. Thanks once again for validating my feeling that it
(changing the look of cursor for drag and drop) wasn't possible.
~Siddharth
Previous Topic:rotate a IFigure
Next Topic:Treeviewer
Goto Forum:
  


Current Time: Sun Nov 28 20:38:32 GMT 2021

Powered by FUDForum. Page generated in 0.01674 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top