Community
Participate
Working Groups
3.5.2 and I20100523-0800 Cocoa The tooltip for a tool item in an inactive shell is not updated when the mouse is moved to an other item in same group. Steps: - Control Example > ToolBar - Set/Get API - hover over fist item of example toolbar => hover is SWT.PUSH - move mouse horizontally to third item => hover is still SWT.PUSH but should be SWT.RADIO. When the mouse leaves the toolbar area, the hover disappears and correctly appears the next time. In the SDK, this can e.g. be seen in the main window toolbar when the Find/Replace dialog of a text editor is active, or in Javadoc hovers when you move the mouse into the hover, wait until the toolbar appears, and then hover over the tool items (without giving focus to the Javadoc hover)
When a window is in active our tooltip tracking is using the wrong coordinates to search the toolbar for a ToolItem.
Created attachment 169870 [details] Fix Not for 3.6 at this point. If the hit view is in a different window than the event window we need to convert the point to the hit window's coordinate system.
Silenio, please review for 3.6.1.
Fix is good. Just move the new code inside of the "if (control != null)" statement. "eventPoint" is only needed inside that block. To keep comments consistent with parts of the SWT source code, we should avoid using personal pronouns in comments (we, I, etc).
Created attachment 173577 [details] final patch Final patch, based on 3.6 branch.
Fixed > 20100706 in 3.6 branch and HEAD