Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 06:40 Go to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
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 07:07 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
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: Tue Apr 23 15:12:44 GMT 2024

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

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

Back to the top