Community
Participate
Working Groups
The default behavior for ToolItems with a DROP_DOWN style on a win32 platform is for the arrow to stay pushed while the popup menu is displayed. This can be fixed with a simple code change. The TBN_DROPDOWN message needs to be processed immediately for the arrow part of the ToolItem to stay pushed instead of being posted to the queue for later processing. In the ToolBar.wmNotifyChild() method, changing child.postEvent() to child.sendEvent() will rectify the problem.
Thanks. You are right but there are issues surrounding send vs post for SWT.Selection events. It think your change is good and should go in but it is way to late in the freeze cycle for R2.0 to risk it.
we should re-consider this for 2.1
Changing this the post to the send will no longer fix the problem for menus in 2.1 because Menu.setVisible() defers the menu pop up to the event loop. This is to be consistent with the other platforms where pop up menus do not start a modal menu loop in the application code but instead, run from Display.readAndDispatch()). I don't believe we should change this (sorry Rob).