sharpshell icon indicating copy to clipboard operation
sharpshell copied to clipboard

SharpDropHandler; Right Mouse Button; Context Menu

Open hafstrom opened this issue 6 years ago • 4 comments

Is this library able to add items to the context menu that pops up when using the right mouse button to drag items into a directory/drive?

The functionallity I'm looking for is pretty much the same as for example 7-zip when I drag an archive with the right mouse button and it shows various options.

Been trying with the SharpDropHandler and SharpContextMenu but can't get it to work in any way. I'm using [COMServerAssociation(AssociationType.Directory), COMServerAssociation(AssociationType.Drive)]

hafstrom avatar Sep 23 '18 14:09 hafstrom

I am not sure, but maybe you want to check out what the documentation says about here: https://docs.microsoft.com/de-de/windows/desktop/shell/context-menu-handlers#creating-drag-and-drop-handlers

Should be easy enough to do it yourself if ContextMenuHandlers are working fine.

Hope you find a solution, would be thankful for sharing information, too.

Countryen avatar Sep 25 '18 10:09 Countryen

Hi @hafstrom can you show an animated gif or something explaining what you mean? From the way you've described it it sounds just like a context menu handler, but I might be missing something.

dwmkerr avatar Oct 16 '18 13:10 dwmkerr

@hafstrom Quick thought, is what you are looking for the same as the below:

https://docs.microsoft.com/en-gb/windows/desktop/shell/context-menu-handlers#creating-drag-and-drop-handlers

dwmkerr avatar Oct 16 '18 15:10 dwmkerr

Hey @hafstrom, this issue is rather old and you haven't come back to it after me and dwmkerr answering. Is this still a problem / open issue for you? If you found a solution, feel free to share it. I will add it to the docs, if it's new info.

Countryen avatar Aug 30 '19 22:08 Countryen