[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Removing default popup menu listener from text
|
text.setMenu(new Menu(text.getShell())); will make the text's OS-provided
menu not appear
Grant
"Lars Grammel" <lars.grammel@xxxxxxxxx> wrote in message
news:fvnkvb$uev$2@xxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I am adding a MenuDetectListener to a text field which I created using the
> createFormText method of a FormToolkit. This menu detect listener shows
the
> my custom context menu, but after I select something from that menu or
> click it away, the default context menu pops up (which I don't want). I
> thought of deregistering the default menudetected listener, but since I
> don't have the reference to this object, it is not possible.
>
> Is there a way to solve this problem?
>
> Thanks
>
> Lars