Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » not selecting tree item when starting drag
not selecting tree item when starting drag [message #461835] Sun, 02 October 2005 02:40 Go to next message
Eclipse UserFriend
In my application, when the user initiates a drag from a Tree (I'm using
a JFace TreeViewer), I would like this to not select the TreeItem.

I prefer not to try to deal with the low-level mouse events for
detecting the drag, since this deals with platform-specific mechanisms.

However, when I tried listening to the SWT.Selection, SWT.DragDetect,
and the TreeViewer selection and DragStart events, the selection events
always appear first, so I'm not able to determine that the selection was
caused by the start of a drag (so I can ignore/reverse the selection).

Any ideas about how I can solve this?

Thanks,

Francis
Re: not selecting tree item when starting drag [message #461848 is a reply to message #461835] Mon, 03 October 2005 03:07 Go to previous message
Eclipse UserFriend
Sorry, forgot to specify platforms and versions.

This is on Linux GTK with 3.1.1.

This is different than the Win32 behavior. The node is selected in
win32, the only after the mouse is released. Still in the win32 case, I
don't want the node on which the drag started to be selected.

Francis Upton wrote:
> In my application, when the user initiates a drag from a Tree (I'm using
> a JFace TreeViewer), I would like this to not select the TreeItem.
>
> I prefer not to try to deal with the low-level mouse events for
> detecting the drag, since this deals with platform-specific mechanisms.
>
> However, when I tried listening to the SWT.Selection, SWT.DragDetect,
> and the TreeViewer selection and DragStart events, the selection events
> always appear first, so I'm not able to determine that the selection was
> caused by the start of a drag (so I can ignore/reverse the selection).
>
> Any ideas about how I can solve this?
>
> Thanks,
>
> Francis
Previous Topic:SourceViewer and SourceViewer decoration
Next Topic:color of text in a texbox
Goto Forum:
  


Current Time: Sun Jul 06 23:28:40 EDT 2025

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

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

Back to the top