Bug 48341 - Cannot get height of Menu and no capabilities for work around
Summary: Cannot get height of Menu and no capabilities for work around
Status: RESOLVED DUPLICATE of bug 38436
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: All Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-09 10:23 EST by Greg Roberts CLA
Modified: 2004-05-25 16:38 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***