Cursor while drag and drop [message #224306] |
Fri, 13 October 2006 10:47 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03699 seconds