Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328013 - [Button] Radio buttons stop the propagation of mouse wheel event
Summary: [Button] Radio buttons stop the propagation of mouse wheel event
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-18 04:04 EDT by Ivan Furnadjiev CLA
Modified: 2010-10-18 04:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.