Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » I would like to remove windows menu in textbox
I would like to remove windows menu in textbox [message #671805] Thu, 19 May 2011 03:48 Go to next message
fangjava  is currently offline fangjava Friend
Messages: 8
Registered: July 2009
Junior Member
in RCP app ,right click in textbox , will show windows popup menu,
I would like to remove it


Thanks for any reply!
Re: I would like to remove windows menu in textbox [message #671924 is a reply to message #671805] Thu, 19 May 2011 11:01 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
IIRC if you set a custom Menu Text#setMenu() which has no entries it is
gone.

Redirecting to SWT-newsgroup which is more appropriate.

Tom

Am 19.05.11 05:48, schrieb fangjava:
> in RCP app ,right click in textbox , will show windows popup menu,
> I would like to remove it
>
> Thanks for any reply!
icon10.gif  Re: I would like to remove windows menu in textbox [message #672132 is a reply to message #671924] Fri, 20 May 2011 02:35 Go to previous message
fangjava  is currently offline fangjava Friend
Messages: 8
Registered: July 2009
Junior Member
Hi, Tom
Thank you for your reply!
It resolved.

I through MouseListener to show popup menu, it also show window menu
public void mouseDown(MouseEvent e){
if(e.button==3){//right click
Control control=(Control)e.widget;
menu.setLocation(control.toDisplay(e.x, e.y);
menu.setVisible(true);
}
}
but use Text#setMenu() ,it's OK

Thank you very very much!! Razz
Previous Topic:Webstart relaunch
Next Topic:How to interact with CNF (Common Navigator Framework) and Editor
Goto Forum:
  


Current Time: Thu Apr 25 14:02:07 GMT 2024

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

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

Back to the top