|Re: dropdown menu in main toolbar ... menu items can't be checked [message #510865 is a reply to message #329805]
||Thu, 28 January 2010 21:16
| Wade Walker
Registered: July 2009
I know this reply is a bit late, but I found the solution to your second problem, where the little down arrow in your AS_DROP_DOWN_MENU action constantly shows up as hovered/highlighted/hot even when the mouse isn't over it.
In your ApplicationActionBarAdvisor.fillCoolBar() method, you need to create your ToolBarManager with the SWT.FLAT style, like this:
ToolBarManager toolbarmanager = new ToolBarManager( SWT.FLAT );
I had this exact same problem, spent a whole day debugging it, and finally noticed that the RCP Mail template tutorial ( http://www.eclipse.org/articles/Article-RCP-3/tutorial3.html) used SWT.FLAT, but I didn't. Adding this one flag fixed the problem for me.
Powered by FUDForum
. Page generated in 0.03876 seconds