Bug 39082 - Use SWT.MenuDetect for showing popup menu
Summary: Use SWT.MenuDetect for showing popup menu
Status: RESOLVED DUPLICATE of bug 32688
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-18 13:59 EDT by Simon Arsenault CLA
Modified: 2003-06-19 03:50 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Arsenault CLA 2003-06-18 13:59:41 EDT
So that the popup menu is displayed properly on all platforms, we need to use 
the MenuDetect listener instead of a MouseListener and testing for button == 3.

Please see bug 28658 for more details. Also, see bug 39081 open against SWT - 
the x and y values of the MouseEvent are relative to the control, but the x & y 
values of the Event (MenuDetect listener) are relative to the screen. I'm 
asking SWT to make them relative to the control.

The only place I found in the Text component that needs updating is 
CompositeRulerCanvas (in its constructor, it adds a mouse listener to show a 
popup menu when button == 3).
Comment 1 Andre Weinand CLA 2003-06-19 03:50:39 EDT

*** This bug has been marked as a duplicate of 32688 ***