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) {
}
}
});
+ 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() {