|Re: How to hide/disable refresh from Browser's context menu [message #945698 is a reply to message #940457]
||Mon, 15 October 2012 14:42
| Grant Gayed
Registered: July 2009
Any context menu that you get for free is coming from the native
control, not from swt, so there is no way to add/remove/modify the
The one thing you can consider doing is to replace this menu with your
own (Control.setMenu()). This of course would require you to
re-implement functionality for all menu items that you want to offer.
Some of these would be easy to do via Browser API (eg.- Back, Forward),
some would be doable via Browser.execute() (eg.- Print), and some would
likely not be doable at all (eg.- Print Preview).
On 10/11/2012 12:53 PM, Page Wang wrote:
> I am using the Browser widget to display some HTML. There are a few menu
> items on the Browser's context menu not applicable, is there a way to
> disable or hide them? The ones I like to hide are "Encoding" and "Refresh".
> Thanks for the help!
Powered by FUDForum
. Page generated in 0.02079 seconds