Hi Srdjan,
Create a Method of the form like "_MouseWheel"
Bound all Mousewheel events via eventbinding (You might iterate throug .CONTROLS) to this Method
The Method must recieve the Parameters of the Mousewheel Event(s)
Now you need the calculate the direction and use
.SETVIEWPORT() to place the viewport
Agnes
>>>Dear All,
>>>
>>>I use form with scrollbars. Is it possible to force mouse wheel scrolling performed on top of let say container or large shape, to actually do vertical scrolling of the form like it was done directly on the form body
>>>or vertical scrollbar itself.
>>>
>>
>>Seems to me you could bind the MouseWheel event of each control to something at the form level.
>
>
>Hi Tamar,
>
>Question is to what ...
>
>If I could force form to scroll down somehow, then I could call such functionality from each object MouseWheel.
>
>So to rephrase question ;
>
>How to force VFP form to scroll down (or up)
>
>TIA
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]