Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse wheel for the vertical scroll bar for Resource View (Read 3660 times)
AaronTobiason
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Jul 8th, 2014
Mouse wheel for the vertical scroll bar for Resource View
Sep 8th, 2014 at 9:47pm
Print Post  
When using the Resource view, should the mouse wheel work for the vertical scroll bar?

It doesn't seem to work for me.


  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Mouse wheel for the vertical scroll bar for Resource View
Reply #1 - Sep 9th, 2014 at 7:02am
Print Post  
Hi,

The mouse wheel events are not processed automatically by the control. You could add a MouseWheelListener to the Calendar and manually perform the scrolling. The following code will give you an idea how:

Code
Select All
calendar.addMouseWheelListener(new MouseWheelListener() {
	public void mouseWheelMoved(MouseWheelEvent e) {
		if (e.getScrollType() ==  MouseWheelEvent.WHEEL_UNIT_SCROLL)
			calendar.setVScrollPos(calendar.getVScrollPos() + e.getUnitsToScroll());
	}
}); 


Let me know if this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
AaronTobiason
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Jul 8th, 2014
Re: Mouse wheel for the vertical scroll bar for Resource View
Reply #2 - Sep 9th, 2014 at 3:47pm
Print Post  
This worked. Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint