Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Drag And Drop Best practice ?
Drag And Drop Best practice ? [message #452090] Mon, 14 March 2005 14:40
hortiz Mising name is currently offline hortiz Mising nameFriend
Messages: 96
Registered: July 2009
Member
Hi,

I use a Tree viewer as a Drag source and a Composite as a Drop target.
Users can so drag and drop tree nodes content.

I'm now asked to modify this by creating a new Composite (in a new Shell)
if the user drops the tree node outside the existing drop target.

So I have now one drag source and two distinct drop targets.

To determine whether the drop has been done on the dedicated Composite or
outside, I read the event.detail content in the dragFinished method, if it
is equal to DND.DROP_NONE, the drop has been done outside the Composite.

Is it a good way to do this ???

Thanks
Helene
Previous Topic:No more handles - SWT / Windows Limitations
Next Topic:mixed font widget or swing labels with swt widgets
Goto Forum:
  


Current Time: Sat Apr 20 02:27:48 GMT 2024

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

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

Back to the top