[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: ControlTransfer ?

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.snippets/src/org/eclipse/swt/snippets/Snippet46.java?rev=HEAD&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@xxxxxxxxx> wrote in message 
news:b142b38da3566b9338e4905f82dffb3f$1@xxxxxxxxxxxxxxxxxx
> Is it possible to transfer control? (in DnD). Like drag one button from a 
> container and drop it in another container?
>