Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing object scroll to form scrollbars
Message
From
14/12/2007 03:30:46
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
14/12/2007 02:20:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01275505
Message ID:
01275783
Views:
39
This message has been marked as the solution to the initial question of the thread.
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.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform