Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Text & context menu
SWT Text & context menu [message #457008] Tue, 14 June 2005 14:30 Go to next 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
Re: SWT Text & context menu [message #457180 is a reply to message #457008] Mon, 20 June 2005 19:10 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=6276

"Didier Montet" <didier.montet@oreka.com> wrote in message
news:d8mpmk$qks$1@news.eclipse.org...
> 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
>
>
>
Previous Topic:Drag and Drop for Text widget?
Next Topic:create image button
Goto Forum:
  


Current Time: Sat Apr 27 03:57:47 GMT 2024

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

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

Back to the top