Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Context menu in Text box
Context menu in Text box [message #461788] Fri, 30 September 2005 08:03 Go to next message
mohit is currently offline mohitFriend
Messages: 24
Registered: July 2009
Junior Member
Can some body please throw some light on how to get the handle of the
context-menu (Cut, copy, paste , Select all )which pops on the right click
in a text Field (org.eclipse.swt.widgets.Text)

tia,
Mohit
Re: Context menu in Text box [message #462019 is a reply to message #461788] Wed, 05 October 2005 01:49 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
What do you mean by "handle"? It should work automatically. If you want to
get rid of it, either add your own menu using Control.setMenu(), or set
doit=false in SWT.MenuDetect.

"Mohit" <mohit.jhawar@gmail.com> wrote in message
news:e96d959c1d5e32d8b5ce577cb1aa0375$1@www.eclipse.org...
> Can some body please throw some light on how to get the handle of the
> context-menu (Cut, copy, paste , Select all )which pops on the right click
> in a text Field (org.eclipse.swt.widgets.Text)
>
> tia,
> Mohit
>
Re: Context menu in Text box [message #462154 is a reply to message #462019] Fri, 07 October 2005 10:54 Go to previous message
mohit is currently offline mohitFriend
Messages: 24
Registered: July 2009
Junior Member
Well the default menu was shown automatically, however, even when the
textbox was read only, "Paste" was enabled. I just wanted to disable it
without reinventing the wheel.
Steve Northover wrote:

> What do you mean by "handle"? It should work automatically. If you want to
> get rid of it, either add your own menu using Control.setMenu(), or set
> doit=false in SWT.MenuDetect.

> "Mohit" <mohit.jhawar@gmail.com> wrote in message
> news:e96d959c1d5e32d8b5ce577cb1aa0375$1@www.eclipse.org...
>> Can some body please throw some light on how to get the handle of the
>> context-menu (Cut, copy, paste , Select all )which pops on the right click
>> in a text Field (org.eclipse.swt.widgets.Text)
>>
>> tia,
>> Mohit
>>
Previous Topic:[SWT 3.1] Button on OS X not selectable with Numpad Enter
Next Topic:popups in SWT
Goto Forum:
  


Current Time: Tue Apr 23 11:03:44 GMT 2024

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

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

Back to the top