Mouse Wheel scrolling

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have seen the article on lenbas.com about stopping the mouse wheel working
and have made it work. The problem is that once the form has been loaded the
wheel does not work on any other form.

Ideally i would like a main form to be able to scroll but not allow the
subform on the main form to be scrolled. Is this possible or does the mouse
hook only allow the mouse to stop scrolling on all forms?

Thanks
 
Bill said:
Hi,

I have seen the article on lenbas.com about stopping the mouse wheel
working and have made it work. The problem is that once the form has
been loaded the wheel does not work on any other form.

Ideally i would like a main form to be able to scroll but not allow
the subform on the main form to be scrolled. Is this possible or does
the mouse hook only allow the mouse to stop scrolling on all forms?

Thanks

There's a function for turning the wheel off and another one for turning it
on. You would have to use the events in your various forms to toggle the
state of the wheel.
 
Thanks,

I tried to use the On Got focus and On Lost focus events for the form but it
stops the scroll wheel working even if you put the focus on another form.
What events do you suggest?
 
Bill said:
Thanks,

I tried to use the On Got focus and On Lost focus events for the form
but it stops the scroll wheel working even if you put the focus on
another form. What events do you suggest?

Try Activate and Deactivate.
 
Back
Top