Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Two types of Menus?
Two types of Menus? [message #461722] Wed, 28 September 2005 09:42 Go to next message
Eclipse UserFriend
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] Tue, 04 October 2005 21:40 Go to previous message
Eclipse UserFriend
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: Thu Jul 10 00:49:09 EDT 2025

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

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

Back to the top