开发者

How to make a customized menu for Delphi's WebBrowser?

开发者 https://www.devze.com 2023-03-10 02:00 出处:网络
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.Sho

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消