What is the best method for implementing mouse wheel activity in Delph1 VCL forms?

Posted by Brian Frost on Stack Overflow See other posts from Stack Overflow or by Brian Frost
Published on 2010-03-18T19:25:09Z Indexed on 2010/03/18 19:31 UTC
Read the original article Hit count: 225

Filed under:
|
|
|

As a long time user of Delphi 7, I've rolled my own mouse wheel handling in a few controls but lately I've noticed that some recent applications only need the mouse cursor to be placed over a control (e.g a list box or tree view) for the mouse wheel activity to cause that control to scroll. This feels nice (as opposed to having to click focus a control before it responds to the wheel. Now I've moved to Delphi 2010 I'm wondering what is the 'correct' behaviour? And what can I use in Delphi that avoids me having to bodge this with my own solutions now? Thanks.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about mouse-wheel