Drag Drop Question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Drag Drop Question

Dan Antion
Is it possible to drag from a Dolphin app into another Windows program?

I am trying to drag items out of a listBox into text fields.  It works
fine within Dolphin, but not into other applications.  I have searched
this group, and there are some references that indicate this is possible
(at least dragging into Dolphin from other apps), but the links (dolphin
harbor) don't seem to be working.

Thanks
Dan


Reply | Threaded
Open this post in threaded view
|

Re: Drag Drop Question

Steve Alan Waring
Hi Dan,

Sorry for the problem with Dolphinharbor, it should be back up and
running now.

The Shell Project packages (
http://www.dolphinharbor.org/dh/projects/shell/index.html ) only
implement dragging into a Dolphin app, not dragging out of a Dolphin
app. "Dragging into" was fairly simple to implement, "dragging out"
would be more complex, but I believe it would be possible.

For more info see:

http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_programming/transferring/transfer.asp?frame=true

I think you would need to implement objects (ie subclasses of
COMInterfaceImp) that expose the IDropSource and IDataObject
interfaces.

In the Shell Project packages is an example of a class
(ShellDragDropSession)that exposes the IDropTarget interface. This may
give you a few ideas on how to proceed.

Hope this helps!
Steve


Reply | Threaded
Open this post in threaded view
|

Re: Drag Drop Question

Dan Antion
Thanks Steve.  I got the shell package and I'll designate my next slicw
of free time toward this.

Dan

Steve Waring wrote:

> Hi Dan,
>
> Sorry for the problem with Dolphinharbor, it should be back up and
> running now.
>
> The Shell Project packages (
> http://www.dolphinharbor.org/dh/projects/shell/index.html ) only
> implement dragging into a Dolphin app, not dragging out of a Dolphin
> app. "Dragging into" was fairly simple to implement, "dragging out"
> would be more complex, but I believe it would be possible.
>
> For more info see:
>
> http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_programming/transferring/transfer.asp?frame=true
>
> I think you would need to implement objects (ie subclasses of
> COMInterfaceImp) that expose the IDropSource and IDataObject
> interfaces.
>
> In the Shell Project packages is an example of a class
> (ShellDragDropSession)that exposes the IDropTarget interface. This may
> give you a few ideas on how to proceed.
>
> Hope this helps!
> Steve