How to create a customized menu for Delphi WebBrowser?

Can I create a custom menu for a control WebBrowser?

I want to disable some existing elements and add some new elements.

+3
source share
1 answer

You can do this by implementing a method IDocHostUIHandler.ShowContextMenufor the TWebBrowser component, when you override this method, the TWebBrowser control will bring up your customized menu, check this article How to customize the TWebBrowser user interface (part 4 of 6)to find out how to override this method from delphi, and then check this article from MSDN WebBrowser Customization (Part 2)to find out how to set up the menu.

+4
source

All Articles