Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » OLE Drag And Drop
OLE Drag And Drop [message #457195] Mon, 20 June 2005 22:43 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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?
>
Previous Topic:Variant ByRef
Next Topic:Problem Opening Wizard
Goto Forum:
  


Current Time: Thu Apr 25 09:49:18 GMT 2024

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

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

Back to the top