Bug 48341

Summary: Cannot get height of Menu and no capabilities for work around
Product: [Eclipse Project] Platform Reporter: Greg Roberts <gwrobert>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: scottp, steve_northover
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: Windows 2000   
Whiteboard:

Description Greg Roberts CLA 2003-12-09 10:23:20 EST
No mechanism for retrieving the height of a Menu or a MenuItem. No way to get 
the bounds of a menu either so there is no way to work around this on both 
Linux and Windows. They behave differently as far as when setting location of a 
Menu on the OS so can work around it on 1 OS but not the other, depending on if 
the Menu is POP_UP or PULL_DOWN. Our product UI relys heavily on locating a 
Menu so this is a critical/blocking situation for us.
Comment 1 Grant Gayed CLA 2003-12-09 11:06:37 EST
Will investigate determining a menu's size on the various platforms.
Comment 2 Grant Gayed CLA 2004-02-06 13:08:38 EST
I've done some looking at this today.  The platforms seem to support it 
(haven't checked mac yet), though they each have quirks w.r.t. giving the 
correct answer, particularly for x and y location (width and height generally 
work better).  I'll bring this up with others next week once they return from 
eclipseCon.
Comment 3 Grant Gayed CLA 2004-02-20 11:26:31 EST
Fixed > 0220.  There was more resistance to this than I expected.  Added new 
api Menu.getSize() which returns a Point representing the size of a visible 
popup, pulldown, or bar.
Comment 4 Grant Gayed CLA 2004-03-02 18:56:37 EST
Reopening.  api has been removed because in order for it to work it requires 
that a menu be visible, which defeats the main use case for this.  Still 
looking into this.
Comment 5 Steve Northover CLA 2004-05-25 16:38:25 EDT

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