Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Two types of Menus?
Two types of Menus? [message #461722] Wed, 28 September 2005 13:42 Go to next message
Larry Bergman is currently offline Larry BergmanFriend
Messages: 6
Registered: July 2009
Junior Member
I'm writing record/replay code that processes MenuDetect and Selection
events from Menus. I'm running this on an EMF-based plugin and seeing
some odd results. There seem to be two types of menus. When I
right-click on an unselected table cell in the "Properties" table, I get
an SWT.MenuDetect notification (with Event.widget == Table), and then when
I select an item in the table, I get an SWT.Selection notification. If
the table cell is selected prior to the right-click, I also get an
SWT.MenuDetect notification (with Event.widget == Text), but no
SWT.Selection notification on item selection. In this latter case, I
notice that the menu is that same as the menu when right-clicking in some
Windows apps (such as some of the control panels). Is there any way to
get notification of selection in these menus?

Thanks,
Larry
Re: Two types of Menus? [message #462015 is a reply to message #461722] Wed, 05 October 2005 01:40 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Sounds like a bug. Please enter a bug report.

"Larry Bergman" <bergmanl@us.ibm.com> wrote in message
news:de2f9a32486770c260eb4301169b56db$1@www.eclipse.org...
> I'm writing record/replay code that processes MenuDetect and Selection
> events from Menus. I'm running this on an EMF-based plugin and seeing
> some odd results. There seem to be two types of menus. When I
> right-click on an unselected table cell in the "Properties" table, I get
> an SWT.MenuDetect notification (with Event.widget == Table), and then when
> I select an item in the table, I get an SWT.Selection notification. If
> the table cell is selected prior to the right-click, I also get an
> SWT.MenuDetect notification (with Event.widget == Text), but no
> SWT.Selection notification on item selection. In this latter case, I
> notice that the menu is that same as the menu when right-clicking in some
> Windows apps (such as some of the control panels). Is there any way to
> get notification of selection in these menus?
>
> Thanks,
> Larry
>
Previous Topic:TableItem.setImage() does not redraw
Next Topic:Is subclass of Button possible?
Goto Forum:
  


Current Time: Fri Apr 26 10:28:09 GMT 2024

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

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

Back to the top