How to make a customized menu for Delphi's WebBrowser?
Is it possible to make a customized menu for the WebBrowser
control?
I want to disable some existing items and add some new 开发者_开发技巧items.
You can do this implementing the IDocHostUIHandler.ShowContextMenu
method for the TWebBrowser Component, when you override this method, the TWebBrowser control will call your customized menu, check this article How to customize the TWebBrowser user interface (part 4 of 6)
to learn how override this method from delphi and then check this article from the MSDN WebBrowser Customization (Part 2)
to see how customize the menu.
精彩评论