Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ControlTransfer ?
ControlTransfer ? [message #464740] Tue, 29 November 2005 12:29 Go to next message
Stephen is currently offline StephenFriend
Messages: 47
Registered: July 2009
Member
Is it possible to transfer control? (in DnD). Like drag one button from a
container and drop it in another container?
Re: ControlTransfer ? [message #464783 is a reply to message #464740] Tue, 29 November 2005 19:14 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
No. You do not drag and drop controls but rather the data associated with
them.

If you are trying to create a visual editor, you might consider the
following snippet:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet46.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

Note that widgets are created with a parent and you can't just change their
parent containment relationship. On some platforms Control.setParent() is
supported but on most platforms it is not.

"Stephen" <swmk.stephen@xxxxx.com> wrote in message
news:b142b38da3566b9338e4905f82dffb3f$1@www.eclipse.org...
> Is it possible to transfer control? (in DnD). Like drag one button from a
> container and drop it in another container?
>
Previous Topic:TableTreeViewer support for the new tree table widget
Next Topic:BadGC in AIX Motif
Goto Forum:
  


Current Time: Fri Dec 06 14:00:14 GMT 2024

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

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

Back to the top