Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Text & context menu
SWT Text & context menu [message #457008] Tue, 14 June 2005 10:30 Go to previous message
Eclipse UserFriend
Originally posted by: didier.montet.oreka.com

Hello
I use Eclipse 3.0.2 on Windows XP.
Class Text

1. When no menu is set for a text, this one shows a context menu (undo |
cut, copy, paste | select all) when you click the right button of your
mouse.
I would like to trap this default menu (I suppose that this is the OS that
creates it) to add some items.
How can I do that.

In fact, I thought that aText.getMenu() was the solution. But the field
aText.menu is always null. Is there a getDefaultMenu()?

2. If I try to build a new menu with the default items, i don't find
aText.undo() or something like that. There is aText.cut(), aText.paste(),
aText.copy(), but no undo()!! Am I right or tired?

Thanks a lot for your help
Didier
 
Read Message
Read Message
Previous Topic:Drag and Drop for Text widget?
Next Topic:create image button
Goto Forum:
  


Current Time: Wed Jun 18 20:51:10 EDT 2025

Powered by FUDForum. Page generated in 0.29272 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top