Is it possible to make a customized menu for the WebBrowser control?
I want to disable some existing items and add some new items.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this implementing the
IDocHostUIHandler.ShowContextMenumethod for the TWebBrowser Component, when you override this method, the TWebBrowser control will call your customized menu, check this articleHow 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 MSDNWebBrowser Customization (Part 2)to see how customize the menu.