Two types of Menus? [message #461722] |
Wed, 28 September 2005 09:42  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.07619 seconds