The default context menu for the org.eclipse.swt.widgets.Text class is quite a rich thing, packed with features that the user has come to depend on ...
However, as soon as I assign my own context menu with Control.setMenu() all that richness goes away. Is there a means of inserting my own MenuItem object into this system-created menu .. can I have my cake and eat it?
Your clues are always most welcome.
M.
You cannot access the native menu from SWT. It is there, if there are no other menus set for the control. As you noticed, as soon as you set your own menu for the control, this new menu will completely replace the native menu.
As far as I can see, the behavior is common to all platforms.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With