This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Attaching the default context menu to a StyledText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Attaching the default context menu to a StyledText" Watch "Attaching the default context menu to a StyledText" New topic
Author

Attaching the default context menu to a StyledText

J Arshad
Greenhorn

Joined: Sep 07, 2004
Posts: 19
Hi all,


I have recently changed my Text widgets to StyledText, but have discovered that they no longer have the default Windows popup/context menu (with all the Edit functionality - Copy, Paste, etc).

I can create a context menu and define all the Edit actions in it and then attach this menu using StyledText.setMenu(). But it's not very neat - the look&feel is not the same. I'm wondering whether swt/jface allow you to either:

1. enable the default system Edit menu explicitly for a widget? Or
2. get the default Edit menu, which you can then attach to a widget, using setMenu()?

Thanks,

J.
[ February 18, 2005: Message edited by: J Arshad ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Attaching the default context menu to a StyledText
 
Similar Threads
GWT:Unable to detect right clicks on customized tab panel.
jface Treeviewer and StyledText
Eclipse Source Code
How can I catch the CTRL_C or CTRL_V event
Different Fonts in SWT StyledText