#1 2010-11-08 11:35

iycgtptyarvg
Member
Registered: 2009-07-30
Posts: 24

Mouse wheel doesn't work on files list

As stated, the mouse wheel doesn't work on the files list. It does, however, work on the rules list.
It is really aggravating when you are so used to the mouse wheel.

Renamer v5.50
Windows 7 64-bit Home Premium UK
Core 2 Duo E6600
4 GB RAM

Offline

#2 2010-11-08 14:43

SafetyCar
Senior Member
Registered: 2008-04-28
Posts: 446
Website

Re: Mouse wheel doesn't work on files list

It works for me...

One question, did you focused on the file list before using the wheel? (by clicking on some part of the list).

Or maybe you should give more info about the mouse. roll


If this software has helped you, consider getting your pro version. :)

Offline

#3 2010-11-08 15:24

iycgtptyarvg
Member
Registered: 2009-07-30
Posts: 24

Re: Mouse wheel doesn't work on files list

It's a Microsoft Laser Mouse 8000. I've never had trouble with it like this. If it would be a mouse driver problem, then I should have seen it elsewhere as well.

And yes, I do have the list focused.

I'm a software engineer, so I can fix it myself. I didn't see where I could download the source though. Anyone know where I can get it from?

Offline

#4 2010-11-08 20:46

SafetyCar
Senior Member
Registered: 2008-04-28
Posts: 446
Website

Re: Mouse wheel doesn't work on files list

The programs here are not open source.

Let's wait the author to see what he says.


If this software has helped you, consider getting your pro version. :)

Offline

#5 2010-11-09 16:41

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,380

Re: Mouse wheel doesn't work on files list

It seemed a bit odd to me at first, but after digging around for a bit I found out what causes this behavior.

Newer mouse device drivers are able to provide a higher resolution scrolling, i.e. a fraction of a line, as opposed to the the standard behaviour where scroll delta is expressed in a number of whole lines. The component which I use for the files table is ignoring fractional scrolls because it was simply not designed to handle them.

I will update the component in the coming days and will post back here.

For the reference, here are couple of articles from Microsoft on this issue:

Offline

#6 2010-11-09 16:46

iycgtptyarvg
Member
Registered: 2009-07-30
Posts: 24

Re: Mouse wheel doesn't work on files list

You, my friend, are a prince and a scholar.

Offline

#7 2010-11-10 10:00

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,380

Re: Mouse wheel doesn't work on files list

I've updated it: ReNamerBeta.zip

Let me know if the problem is fixed.

Offline

#8 2010-11-10 10:15

iycgtptyarvg
Member
Registered: 2009-07-30
Posts: 24

Re: Mouse wheel doesn't work on files list

den4b wrote:

I've updated it: ReNamerBeta.zip

Let me know if the problem is fixed.

This 100% fixed it for me. Thanks!

Edit:
I don't know why you use a component for this, but here is an example of what I use in one of my WndProc() functions:

case WM_MOUSEWHEEL: // 0x20a
  // The user used the mouse wheel to scroll
  int32 i32ScrollDelta = GET_WHEEL_DELTA_WPARAM(wParam);

  SCROLLINFO si = {};

  // Get the scrollbar info
  si.cbSize = sizeof(si);
  si.fMask = SIF_POS;
  GetScrollInfo(m_hWnd, SB_VERT, &si);

  // Scroll the display (lower the scroll speed for smoother scrolling)
  si.nPos = si.nPos - (i32ScrollDelta / 2);

  // Update the control positions
  SetScrollInfo(m_hWnd, SB_VERT, &si, true);
  CDataCtrlGroup::SetControlPositions();
  break;

Last edited by iycgtptyarvg (2010-11-10 10:30)

Offline

#9 2010-11-10 11:17

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,380

Re: Mouse wheel doesn't work on files list

I use this particular component because it provides great data virtualization and has a lot of other advanced features. It handles scrolling differently.

Offline

Board footer

Powered by FluxBB