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?
views:
151answers:
1
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
2009-09-21 14:25:49
"Input Method" is not among the returned items.
Mitja
2009-09-21 17:26:50
On which OS is that?
Aaron Digulla
2009-09-22 08:31:50
Linux, Debian Lenny.I'm using a SWT port, so it could be the ported code. I commented out createIMMenu call for now.
Mitja
2009-09-25 20:11:25
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
2009-09-26 18:40:43