Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351316

Summary: [Button] SWT.ARROW exists but is unsupported
Product: [RT] RAP Reporter: Christian Radspieler <christian.radspieler>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P4 CC: andreas.blochberger, hihn, tbuschto
Version: unspecified   
Target Milestone: 1.5 M7   
Hardware: PC   
OS: All   
Whiteboard:

Description Christian Radspieler CLA 2011-07-06 08:23:28 EDT
Build Identifier: 1.4.0.20110614-2335

The image stays empty. I would expect that there is an arrow down in the button, if the style is SWT.ARROW | SWT.DOWN.

Reproducible: Always

Steps to Reproduce:
1. Create a button with style SWT.ARROW | SWT.DOWN
Comment 1 Andreas Blochberger CLA 2011-07-07 11:03:49 EDT
I don't think this is an enhancement, because in a single source environment, this style does not work on RAP, but it works on RCP.
Though there is a workaround: not using this flag, but setting an image
Comment 2 Ralf Sternberg CLA 2011-07-07 17:40:40 EDT
I'm sorry, I missed that the style flag ARROW is already available in RAP.  However, arrow buttons are not yet supported by the Button implementation. I don't remember how the style flag slipped in. Now it seems we'll have to support it ;-)
Comment 3 Andreas Blochberger CLA 2011-07-08 03:52:38 EDT
Most of the support for SWT.ARROW is already part of the RWT Button class. The only thing that is missing, is the drawing of an image.

The win32 implementation of SWT Button uses the flag OWNERDRAW to accomplish that. In RWT an image might be a solution.
Comment 4 Ralf Sternberg CLA 2011-07-17 06:12:41 EDT
Andreas, if you already have an idea how to solve this issue, would you like to provide a patch?
Comment 5 Tim Buschtoens CLA 2011-08-01 06:46:57 EDT
Since a simple workaround exists we regard this bug as low priority.
Comment 6 Ivan Furnadjiev CLA 2012-04-24 04:31:53 EDT
Fixed in CVS HEAD.