• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Attaching the default context menu to a StyledText

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic