Vcl.Controls.TMouse.WheelRouting

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property WheelRouting: TWheelRouting read FWheelRouting;

C++

__property TWheelRouting WheelRouting = {read=FWheelRouting, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TMouse

Description

Returns the value used to indicate how Windows treats mouse wheel messages.

The WheelRouting property gives the value used to indicate how Windows treats mouse wheel messages, whether they go to the focused application, the application under the mouse cursor, etc.

To change this, go to the Mouse settings in the Windows UI and change the "Scroll inactive windows when I hover over them" setting.


The WheelRouting property has the following values:

  • wrFocusedWindow: The mouse wheel input is delivered to the app with focus. Using this value means the "Scroll inactive windows when I hover over them" setting is set to On.
  • wrHybrid: The mouse wheel input is delivered to the app with focus (desktop apps) or to the app under the mouse cursor (Windows Store apps).
  • wrMousePos: The mouse wheel input is delivered to the app under the mouse cursor. Using this value means the "Scroll inactive windows when I hover over them" setting is set to On.


See Also