saleguas/context_menu

[Suggestion] The ability to add custom images to the context menu

Opened this issue · 4 comments

See title, for reference in how this could be done see here
Thanks for the awesome library by the way!

PD: I've noticed a limitation with the way the shell context works on Windows, since if the path to the selected destination is sufficiently long, it will just ignore the rest of the command, I don't know if this is my own wrongdoing or a limitation with the way Windows runs commands.

This would be super useful

I think using reg.SetValueEx() to make a key named 'Icon' that has a string value with the path of the .ico or .exe file would work

It does, and that's what I did in one of my projects, but doing so from an API in the library would be pretty cool!

rma6 commented

I think using reg.SetValueEx() to make a key named 'Icon' that has a string value with the path of the .ico or .exe file would work

I've just pushed a PR with this feature. It works by passing a path to an .ico or .exe file to ContextMenu class