wheel mouse button visual foxpro

Posted on 2011-10-06
Last Modified: 2012-05-12
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
Question by:luciliacoelho
    LVL 29

    Accepted Solution

    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.
    LVL 27

    Expert Comment


    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.
    LVL 41

    Assisted Solution

    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.
    LVL 41

    Expert Comment

    "Inside a textbox or editbox" should have been "Inside a textbox or editbox of the current record".
    LVL 29

    Expert Comment

    by:Olaf Doschke
    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    Report to PDF and TIF 33 1,394
    Search for a String within a String 3 353
    autofill a parameter 5 297
    Can't Build Exe in VFP9 8 288
    Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: (http://msd…
    For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now