• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1296
  • Last Modified:

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
0
luciliacoelho
Asked:
luciliacoelho
  • 2
  • 2
2 Solutions
 
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.
0
 
CaptainCyrilCommented:
http://fox.wikis.com/wc.dll?Wiki~ScrollingWithMouseWheel

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.
0
 
pcelbaCommented:
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.
0
 
pcelbaCommented:
"Inside a textbox or editbox" should have been "Inside a textbox or editbox of the current record".
0
 
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.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now