OLE Drag And Drop [message #457195] |
Mon, 20 June 2005 22:43 |
Eclipse User |
|
|
|
Originally posted by: mcheung.equilar.com
How do you have drag and drop in the ole object?
OleFrame frame = new OleFrame(parent, SWT.NONE);
OleControlSite site = new OleControl(frame, SWT.NONE, ProgID);
// Does it works this way?
DropTarget target = new DropTarget(site, SWT.DROP_COPY);
......
target.addDropListener(new DropTargetAdapter(){
public void drop(DropTargetEvent e){
System.out.println("Drop");
}
});
It never print out the drop in the console in my case. Does anyone have a
snippet for this?
|
|
|
Re: OLE Drag And Drop [message #457227 is a reply to message #457195] |
Tue, 21 June 2005 23:00 |
Eclipse User |
|
|
|
Originally posted by: mcheung.equilar.com
All I need to do is use OleListener, thanks
"Michael Cheung" <mcheung@equilar.com> wrote in message
news:d97gqp$jd5$1@news.eclipse.org...
> How do you have drag and drop in the ole object?
>
> OleFrame frame = new OleFrame(parent, SWT.NONE);
> OleControlSite site = new OleControl(frame, SWT.NONE, ProgID);
>
> // Does it works this way?
>
> DropTarget target = new DropTarget(site, SWT.DROP_COPY);
> .....
> target.addDropListener(new DropTargetAdapter(){
> public void drop(DropTargetEvent e){
> System.out.println("Drop");
> }
> });
>
> It never print out the drop in the console in my case. Does anyone have a
> snippet for this?
>
|
|
|
Powered by
FUDForum. Page generated in 0.02941 seconds