views:

117

answers:

1

Hi

I have a new mouse that has the ability to scroll right and left using it's scroll wheel. While this feature works on web pages, Photoshop and etc., it wouldn't do anything when I use it in the Visual Studio when looking at code that is longer (horizontally) than the window.

Is there a way to make it work?

Visual Studio is 2010 express, the mouse is Logitech MX1100.

+1  A: 

There are a few issues with horizontal scrolling in VS2010, some of which have been fixed or worked around after VS2010 shipped. I'm not sure if the MX1100 is a specific example of any of the following, but some of the issues were/are:

  1. Some mice drivers end up sending the event to the wrong HWND; we've seen cases where events will always be sent to the last-but-one thing focused, e.g. the solution explorer will scroll when the editor has focus. I think this one was fixed.
  2. Many drivers, before sending WM_MOUSEHWHEEL (or faking WM_HSCROLL) check to see if the main HWND has WS_HSCROLL (declares it has a win32 horizontal scrollbar). Since VS's main window doesn't, and things like the editor don't have win32 horizontal scrollbars, they'll refuse to send horizontal scroll messages. This one is unfixed.
  3. (Definitely not your case, but) VMWare Fusion (on OS X) running windows doesn't forward on horizontal scroll events to the client OS.

I'll check with people to see if the MX1100 is known or falls into either of the first two categories.

Noah Richards
Thank you for the detailed answer. 1 and 3 aren't the issue in my case for sure. I have seen a problem with horizontal scroll scroll in Notepad++ as well. In this case the scrollbar seems to scroll visually but the code itself doesn't. In addition, the design of the scroll some why change it's color (from the blue of WinXP to gray)
IgalSt