Armin Taghavizad
Armin Taghavizad

Reputation: 1695

How Can I Add An Item To Folders Menu Of Right Click?

I need to add an item to folders right click menu when clicked send folder address to my app. how can i do it? it'll be a great help if you describe how to make popup menu for that item and how can i use images for items? something like WinRAR.... and what about file types? same ways? thank you.

Upvotes: 3

Views: 261

Answers (3)

Chee Meng
Chee Meng

Reputation: 1

Depending on your version of Delphi, you may still be able to use the TurboPower ShellShock components http://sourceforge.net/projects/tpshellshock/ to make your life a bit easier :)

Upvotes: 0

Mason Wheeler
Mason Wheeler

Reputation: 84650

To add new options to the right-click context menu, you'll need to set it up as a shell extension and register it with Windows. Here's an article describing the basic principles for it.

As for how to register a file type with Windows, you can find a mimimal but well-commented Delphi example here.

Upvotes: 2

Rob
Rob

Reputation: 45809

What you want to do is create a Shell Extension. A starting point is this article: Delphi: Windows Shell Extensions. Essentially you need to create a COM component that implements IContextMenu, IContextMenu2 or IContextMenu3 and expose it to Explorer by registering it appropriately.

There's an example at delphi3000.com, but it's only available via the google cache at present.

Upvotes: 4

Related Questions