| Summary: | [Button] Radio buttons stop the propagation of mouse wheel event | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ivan Furnadjiev <ivan> |
| Component: | RWT | Assignee: | 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: | |||
Fixed in CVS HEAD. |
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(); } } }