tags:

views:

151

answers:

1

I'm using StyledText widget in my SWT app. SWT by default appends "Input method" submenu to the end of existing context menu. Is there any way to remove it?

A: 

Yes, you can ask the StyledText for its Menu (getMenu()), find the correct item (getItem(int)) and call dispose() on the item. That will delete it from the menu.

Aaron Digulla
"Input Method" is not among the returned items.
Mitja
On which OS is that?
Aaron Digulla
Linux, Debian Lenny.I'm using a SWT port, so it could be the ported code. I commented out createIMMenu call for now.
Mitja
I thought it was connected to IME somehow. I'm just puzzled how you can see the menu when `getItem()` doesn't return it. Consider reporting a bug against SWT.
Aaron Digulla