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

Bug 328013

Summary: [Button] Radio buttons stop the propagation of mouse wheel event
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.4 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Furnadjiev CLA 2010-10-18 04:04:57 EDT
If you have a radio button inside a scrolled composite, scrolling with mouse wheel does not work if radio button is hovered.
public void createPartControl(Composite parent) {
    parent.setLayout( new FillLayout() );
    ScrolledForm form = new ScrolledForm(parent);
    Composite bodyComp = form.getBody();
    bodyComp.setLayout(new GridLayout());
    bodyComp.setLayoutData(new GridData(GridData.FILL_BOTH));
    Composite composite = new Composite(bodyComp, SWT.NONE);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));

    for(int i = 0; i < 30; i++) {
        Composite temp = new Composite(composite, SWT.NONE);
        temp.setLayout(new GridLayout(4, false));
        temp.setLayoutData(new GridData(GridData.FILL_BOTH));
        for(int j = 0; j < 4; j++) {
            Button btn = new Button(temp, SWT.RADIO);
            btn.setText(j + "-" + i);
            btn.pack();
            }
        }
    }
Comment 1 Ivan Furnadjiev CLA 2010-10-18 04:16:39 EDT
Fixed in CVS HEAD.