UI : fix malfunction mouse wheel in Windows OS. 04/28304/1
authorjungwook.ryu <jungwook.ryu@samsung.com>
Thu, 2 Oct 2014 07:34:22 +0000 (16:34 +0900)
committerjungwook.ryu <jungwook.ryu@samsung.com>
Thu, 2 Oct 2014 07:36:09 +0000 (16:36 +0900)
Change-Id: I872af14c86db19c3d0a678e43635f17c9d88c84b
Signed-off-by: jungwook.ryu <jungwook.ryu@samsung.com>
org.tizen.dynamicanalyzer.widgets/src/org/tizen/dynamicanalyzer/widgets/chartBoard/DAChartBoard.java

index f3c6be7..2f16056 100644 (file)
@@ -204,6 +204,7 @@ public class DAChartBoard extends Composite {
                hScroll.addSelectionListener(scrollbarSelectionListener);
 
                itemListScrollComp = new ScrolledComposite(this, SWT.V_SCROLL);
+               itemListScrollComp.getVerticalBar().setIncrement(50);   // Set scroll speed
                itemListScrollComp.addListener(SWT.MouseWheel, new Listener() {
                        @Override
                        public void handleEvent(Event event) {
@@ -219,6 +220,13 @@ public class DAChartBoard extends Composite {
                                }
                        }
                });
+               itemListScrollComp.addListener(SWT.Activate, new Listener() {
+                       @Override
+                       public void handleEvent(Event event) {
+                               // At Windows Operating System, this code enable mouse wheel action.
+                               itemListScrollComp.setFocus();
+                       }
+               });
                
                itemListScrollComp.setBackground(ColorResources.CHART_BOARD_BACK);
                itemListScrollComp.addControlListener(new ControlListener() {