Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse wheel
Message
 
 
To
14/08/2005 14:26:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040747
Message ID:
01040830
Views:
24
This message has been marked as the solution to the initial question of the thread.
The event is called MouseWheel.

>I am unable to find any scrollwheel events and no events for the the scrollbars. Would you steer me in the correct direction, Please?
>---
>I have a form that displays a map. The form is much larger than the screen. I would like to be able to use the mouse wheel to move the map up and down the screen. Is there a way to accomplish this?
>
>First, set the Scrollbar property of the form to 3 to enable scrollbars. In the ScrollWheel event of each control, you can put the following code:
>
>
>Thisform.SetViewPort( Thisform.ViewPortLeft, Max(0,Thisform.ViewPortTop-Sign(m.nDirection)*16) )
>
>
>This scrolls the form by 16 pixels each time you scroll the wheel. You can use BINDEVENT() to execute this code for every control without adding the code to each one.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform