wheel mouse button visual foxpro

When in a Visual Foxpro project we create a grid to use within a form I can not scroll up or scroll down using the wheel mouse button. Is there any property which we can enable to take advantage  of this mouse functionality?
Kind regards
Lucilia Coelho
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Olaf DoschkeSoftware DeveloperCommented:
There's nothing you need to do to scroll a grid via a mouse wheel. If it doesn't work for you it's much more likely a mouse driver issue.

I have a no-name mouse with a scroll wheel here, and it works. The windows device manager shows the standard microsoft mouse driver for a "HID conform USB mouse" (HID= human interface device) is used, namely mouclass.sys and mouhid.sys, maybe your mouse is too special overloading each of the mouse wheels and buttons.

You might also take a look into the mouse within the control panel, this offers all the detail configuration options for a mouse, for example I can determin how many rows are scrolled with the mouse wheel.

Bye, Olaf.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CaptainCyrilFounder, Software Engineer, Data ScientistCommented:

When I click the grid and run the wheel mouse over a column that has buttons it works. When I run the mousewheel on text it does not scroll.
The mouse wheel does not scroll the grid when the cursor is inside a textbox or editbox. If you move the cursor up or down then you may scroll again.
"Inside a textbox or editbox" should have been "Inside a textbox or editbox of the current record".
Olaf DoschkeSoftware DeveloperCommented:
The scroll context is important, that's why it's like pavel says, you need to leave the textbox and then the whole grid will scroll. You can also click the grid border, active record mark or whatever belongs to the grid itself.

If you have a multiline editbox within the grid, you'll see the scroll context in effect: If you edit text in such an editbox, the mouse wheel scrolls within the editbox, it's only naturally what you would expect to scroll. If you're inside a textbox there is nothing to scroll, as it's a single line control, typically.

You can have anything in the grid, if you just move to another cell via array keys, tab or enter, the scroll context will change to the grid again. If you make the grid readonly or set AllowCellselection=.f. the scroll context will always remain on the grid.

But I didn't even do so and simply created a grid on the fly with foxcode as it's recordsource and it scrolls by mouse wheel.

Bye, Olaf.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.