Skip to main content



      Home
Home » Eclipse Projects » GEF » Drag-and -Drop & Icons
Drag-and -Drop & Icons [message #55499] Fri, 17 January 2003 06:06 Go to next message
Eclipse UserFriend
Originally posted by: jan.odvarko.schemantix.com

Hi All,
How can I change the icons, which are displayed
during a drag-and-drop operation?

thanks for all tips

Honza
Re: Drag-and -Drop & Icons [message #55553 is a reply to message #55499] Fri, 17 January 2003 12:21 Go to previous messageGo to next message
Eclipse UserFriend
What do you mean by "icons"?

Eric

Jan Odvárko wrote:
> Hi All,
> How can I change the icons, which are displayed
> during a drag-and-drop operation?
>
> thanks for all tips
>
> Honza
>
>
>
>
Re: Drag-and -Drop & Icons [message #56593 is a reply to message #55553] Mon, 20 January 2003 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.odvarko.schemantix.com

oops

I meant the cursors, which are used during that operation...

Honza


"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b09d2t$aa2$1@rogue.oti.com...
> What do you mean by "icons"?
>
> Eric
>
> Jan Odv
Re: Drag-and -Drop & Icons [message #56698 is a reply to message #56593] Mon, 20 January 2003 13:32 Go to previous messageGo to next message
Eclipse UserFriend
The cursor is based on the current DropTargetEvent's detail field, which can be DND.DROP_NONE,
DND.DROP_MOVE, DND.DROP_COPY, or DND.DROP_LINK. Changing the detail should change the cursor to the
appropriate one.

Eric


Jan Odvárko wrote:
> oops
>
> I meant the cursors, which are used during that operation...
>
> Honza
>
>
> "Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
> news:b09d2t$aa2$1@rogue.oti.com...
>
>>What do you mean by "icons"?
>>
>>Eric
>>
>>Jan Odvárko wrote:
>>
>>>Hi All,
>>>How can I change the icons, which are displayed
>>>during a drag-and-drop operation?
>>>
>>>thanks for all tips
>>>
>>>Honza
>>>
>>>
>>>
>>>
>>
>
>
Re: Drag-and -Drop & Icons [message #57565 is a reply to message #56698] Thu, 23 January 2003 09:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.odvarko.schemantix.com

Yeah, I see...

Another question, is there any chance to supply my own cursors?

Thanks again

Honza


"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b0he9p$79n$4@rogue.oti.com...
> The cursor is based on the current DropTargetEvent's detail field, which
can be DND.DROP_NONE,
> DND.DROP_MOVE, DND.DROP_COPY, or DND.DROP_LINK. Changing the detail
should change the cursor to the
> appropriate one.
>
> Eric
>
>
> Jan Odv
Re: Drag-and -Drop & Icons [message #57706 is a reply to message #57565] Thu, 23 January 2003 13:01 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure. That would be a good question for the SWT folks.

Jan Odvárko wrote:
> Yeah, I see...
>
> Another question, is there any chance to supply my own cursors?
>
> Thanks again
>
> Honza
>
>
> "Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
> news:b0he9p$79n$4@rogue.oti.com...
>
>>The cursor is based on the current DropTargetEvent's detail field, which
>
> can be DND.DROP_NONE,
>
>>DND.DROP_MOVE, DND.DROP_COPY, or DND.DROP_LINK. Changing the detail
>
> should change the cursor to the
>
>>appropriate one.
>>
>>Eric
>>
>>
>>Jan Odvárko wrote:
>>
>>>oops
>>>
>>>I meant the cursors, which are used during that operation...
>>>
>>>Honza
>>>
>>>
>>>"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
>>>news:b09d2t$aa2$1@rogue.oti.com...
>>>
>>>
>>>>What do you mean by "icons"?
>>>>
>>>>Eric
>>>>
>>>>Jan Odvárko wrote:
>>>>
>>>>
>>>>>Hi All,
>>>>>How can I change the icons, which are displayed
>>>>>during a drag-and-drop operation?
>>>>>
>>>>>thanks for all tips
>>>>>
>>>>>Honza
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>
>
Re: Drag-and -Drop & Icons [message #57871 is a reply to message #57565] Fri, 24 January 2003 13:38 Go to previous messageGo to next message
Eclipse UserFriend
Yes, you can do that. To create your own cursors, look at
org.eclipse.graphics.swt.Cursor. In particular, the following constructor:

public Cursor(Device device, ImageData source, ImageData mask, int hotspotX,
int hotspotY)

Pratik Shah

"Jan Odv
Re: Drag-and -Drop & Icons [message #57895 is a reply to message #57871] Fri, 24 January 2003 14:16 Go to previous messageGo to next message
Eclipse UserFriend
I think the question was whether a custom cursor can be used during drag and drop. I'm not sure of
the answer to this. You would be better off to ask this question on the eclipse.tools newsgroup.
The SWT folks should be able to answer this. If I had to venture a guess, I would say this is not
currently possible. But, again, I don't know for sure.

Eric



Pratik Shah wrote:
> Yes, you can do that. To create your own cursors, look at
> org.eclipse.graphics.swt.Cursor. In particular, the following constructor:
>
> public Cursor(Device device, ImageData source, ImageData mask, int hotspotX,
> int hotspotY)
>
> Pratik Shah
>
> "Jan Odvárko" <jan.odvarko@schemantix.com> wrote in message
> news:b0oupi$8u6$1@rogue.oti.com...
>
>>Yeah, I see...
>>
>>Another question, is there any chance to supply my own cursors?
>>
>>Thanks again
>>
>>Honza
>>
>>
>>"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
>>news:b0he9p$79n$4@rogue.oti.com...
>>
>>>The cursor is based on the current DropTargetEvent's detail field, which
>>
>>can be DND.DROP_NONE,
>>
>>>DND.DROP_MOVE, DND.DROP_COPY, or DND.DROP_LINK. Changing the detail
>>
>>should change the cursor to the
>>
>>>appropriate one.
>>>
>>>Eric
>>>
>>>
>>>Jan Odvárko wrote:
>>>
>>>>oops
>>>>
>>>>I meant the cursors, which are used during that operation...
>>>>
>>>>Honza
>>>>
>>>>
>>>>"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
>>>>news:b09d2t$aa2$1@rogue.oti.com...
>>>>
>>>>
>>>>>What do you mean by "icons"?
>>>>>
>>>>>Eric
>>>>>
>>>>>Jan Odvárko wrote:
>>>>>
>>>>>
>>>>>>Hi All,
>>>>>>How can I change the icons, which are displayed
>>>>>>during a drag-and-drop operation?
>>>>>>
>>>>>>thanks for all tips
>>>>>>
>>>>>>Honza
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>
>
>
Re: Drag-and -Drop & Icons [message #58947 is a reply to message #55499] Tue, 28 January 2003 15:48 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You cannot change the Cursor during DND. This is probably because of Motif
or some platform that doesn't support changing the cursor. Windows CE
maybe?

"Jan Odv
Previous Topic:Rich Text Editor
Next Topic:Make Label to have several editable parts?
Goto Forum:
  


Current Time: Fri Mar 14 01:20:06 EDT 2025

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

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

Back to the top