Community
Participate
Working Groups
It seems that the WRAP style is missing in the Button JavaDoc although the button does support this style flag in 3.7: http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet345.java?view=co
fixed (SWT.java and Button.java) in HEAD
Just for completion: We had serious troubles getting a group of radiobuttons to wrap propperly, although we tried every sort of layout. The solution was to set SWT.WRAP as a style for the parent composite (group), too. Maybe the SWT.WRAP style should be added accordingly to the Composite API?
(In reply to comment #2) > Just for completion: > > We had serious troubles getting a group of radiobuttons to wrap propperly, > although we tried every sort of layout. > > The solution was to set SWT.WRAP as a style for the parent composite (group), > too. > > Maybe the SWT.WRAP style should be added accordingly to the Composite API? SWT.WRAP is not suppose to be set on a Composite. Not sure what you have but it is certainly an accident if it fixed your problem. Note that SWT.WRAP has the same value as SWT.SHADOW_ETCHED_OUT which is defined for group.