1. Technology

Handling Mouse Wheel Messages For The TImage Delphi Control

By March 5, 2012

Follow me on:

in Delphi TIPS :: TGraphicControl descendant controls do not receive mouse wheel messages in Delphi. TImage is one such control. Here's how to expose the OnMouseWheel event handler for the TImage Delphi control. What's more: how to handle mouse wheel messages for any TControl descendant.

I had a need to handle mouse wheel for a TImage control. Was displaying pages of a PDF document (using Quick PDF Library) and wanted to move to the the next / previous page when the user rotates the mouse wheel. Since TImage does not expose mouse wheel message, had to find a solution.

Read the full article to learn how to Add Mouse Wheel Processing For TControl Descendants.


Comments are closed for this post.
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.