| Summary: | [Widgets] Horizontal scroll bar doesn't receive mouse wheel's scroll event ... | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Arnaud <ademuyser> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | Felipe Heidrich <eclipse.felipe> |
| Severity: | normal | ||
| Priority: | P3 | Keywords: | triaged |
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
See Scrollable#WM_MOUSEWHEEL The current implementation will send the WM messages to the vertical scrollbar (when it exist) before sending to the horizontal one. It doesn't matter if where is the selection neither the size of the thumb. Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info. This is a one-off bulk update. (The last one in the triage migration). Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process: https://wiki.eclipse.org/SWT/Devel/Triage See Bug 518478 for details. Tag for notification/mail filters: @TriageBulkUpdate This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
Horizontal scroll bar doesn't receive mouse wheel's scroll event if vertical bar can't scroll (vertical bar is created but doesn't allow any scroll). The only way HBar have to receive MWheel is to not create SWT.V_SCROLL (but it's too bad for me, be cause I need both scroll bar, but sometimes only one is usefull, and this is know at run time, not canvas creation time). Here there are a class to reproduce: package canvas; import org.eclipse.swt.events.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.SWT; public class ACanvas { public static void main(String v[] ) { Display d = Display.getDefault(); Shell s = new Shell( d ); //use this one and horizontal bar receive mouse wheel's scroll //Canvas c = new Canvas( s, SWT.H_SCROLL );//|SWT.V_SCROLL ); Canvas c = new Canvas( s, SWT.H_SCROLL|SWT.V_SCROLL ); s.setLayout(new FillLayout()); c.addKeyListener( new KeyAdapter(){} ); c.setFocus(); if( c.getVerticalBar()!=null ) //if haven't V_SCROLL { c.getVerticalBar().setValues( 0, 0, 0,1,1,2); //cnat' scroll c.getVerticalBar().addSelectionListener( new SelectionListener() { public void widgetSelected( SelectionEvent evt) { System.out.println("| Vertical Scrollbar selected"); } public void widgetDefaultSelected( SelectionEvent e ) { System.out.println("| Vertical Scrollbar default selected"); } }); } c.getHorizontalBar().setValues( 0, 0, 100,10,1,10); c.getHorizontalBar().addSelectionListener( new SelectionListener() { public void widgetSelected( SelectionEvent evt) { System.out.println("- Horizontal Scrollbar selected"); } public void widgetDefaultSelected( SelectionEvent e ) { System.out.println("- Horizontal Scrollbar default selected"); } }); s.setSize( 400, 400 ); s.open (); while (!s.isDisposed ()) { if (!d.readAndDispatch ()) d.sleep (); } d.dispose (); } }