Vcl.Forms.TScrollBox.UseWheelForScrolling
Delphi
property UseWheelForScrolling: Boolean read FUseWheelForScrolling write FUseWheelForScrolling default False;
C++
__property bool UseWheelForScrolling = {read=FUseWheelForScrolling, write=FUseWheelForScrolling, default=0};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | published | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TScrollBox |
Description
Performs an automatic vertical scroll via the mouse wheel.
If set to True, the TScrollBox attempts to perform an automatic vertical scroll via the mouse wheel in preference to triggering the OnMouseWheel event. The default setting is False.
To determine the value for UseWheelForScrolling, refer to the WheelRouting property and set a value for wrMousePos for UseWheelForScrolling to take effect.
Note: The UseWheelForScrolling property only takes effect when the Windows Mouse setting, "Scroll inactive windows when I hover over them," is set to
On. If the set to Off, the scroll box will not receive mouse messages.