Menu

Mouse Wheel Scrolling on Mouse Over

Help
vectorman
2014-05-24
2014-05-29
  • vectorman

    vectorman - 2014-05-24

    Is there anyway to allow the hex editor to scroll using a mouse wheel on mouse over, while not focusing. I don't mind modifying the source, but I have found a way yet to enable this functionality. Any help on this would be appreciated.

     
  • Bernhard Elbl

    Bernhard Elbl - 2014-05-26

    Scrolling while not focused is no Windows standard. Why do you need that?

     
  • vectorman

    vectorman - 2014-05-29

    I was trying to get the behavior similar to Hex Editor Neo (which allows the hex editor to be scrolled on mouse over, without focusing.)

    Edit:
    After thinking awhile, In the end, I've decided I will modify HexBox to focus when the scrollbar is clicked instead.

    Thank you for your time.

    By the way, this is the best Hex control for .NET. Outstanding job with this control.

    Thanks,

    Mike

     

    Last edit: vectorman 2014-05-29
  • Bernhard Elbl

    Bernhard Elbl - 2014-05-29

    Thank you :)

    What you need is a low-level mouse hook...
    http://blogs.msdn.com/b/toub/archive/2006/05/03/589468.aspx

    Catch the wheel events and forward them to the hexbox control and call OnMouseWheel there...

     
  • vectorman

    vectorman - 2014-05-29

    Thank you for the quick reply. I will take a look at that code.

    Thanks again,

    Mike

     

Log in to post a comment.