Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ControlTransfer ?
ControlTransfer ? [message #464740] Tue, 29 November 2005 07:29 Go to next message
Eclipse UserFriend
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 14:14 Go to previous message
Eclipse UserFriend
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 Jul 04 16:08:28 EDT 2025

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

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

Back to the top