Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6902177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:45:56+00:00 2026-05-27T07:45:56+00:00

There is no horizontal scroll when I call this method in Delphi 3 under

  • 0

There is no horizontal scroll when I call this method in Delphi 3 under Windows 7:

const MOUSEEVENTF_HWHEEL = $1000;
mouse_event(MOUSEEVENTF_HWHEEL, 0, 0, 120, 0);

Vertical scroll with MOUSEEVENTF_WHEEL works well. Result is same with SendInput, and return value indicates a success. My current mouse supports horizontal tilt, but has no horizontal scroller.

What is needed to use MOUSEEVENTF_HWHEEL?

SDK documentation: http://bit.ly/mouse_event

Mouse Hook

I created a second 32 bit exe program under Windows 7 only to see if the mouse sends messages when the horizontal wheel is scrolled. This hook receives VSCROLL but no HSCROLL messages.

MouseHook := SetWindowsHookEx(WH_MOUSE_LL, @MouseProc, hInstance, 0);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:45:57+00:00Added an answer on May 27, 2026 at 7:45 am
    int main()
    {
        Sleep(20000); // enough time to switch windows and position the mouse pointer
        mouse_event(MOUSEEVENTF_HWHEEL, 0, 0, 120, 0);
        return 0;
    }
    

    scrolled my selected firefox page to the right. the window had to be selected and the mouse pointer had to be over the page. i did that with the mouse enabled. Or also turned the mouse off while testing (using the on/off switch on the mouse itself), the result was the same.
    My mouse has a horizontal tilt as well, no scroller. (windows 7 ultimate)

    EDIT

    One thing to note: The program itself needs to handle the message. Firefox for example does. It shows the same behaviour as tilting the mouse wheel: the page scrolls left/right accordingly.
    Other programs, like IE, seem not to handle this message, so no scrolling at all. Even using the mouse (Logitech Performance MX without any addional software package) nothing scrolls.
    So, it seems there is no 100% solution to this problem by just sending the mouse_event messages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to enable horizontal scroll-bar whenever necessary? The situation was as
Is there any way to change the entire width of the horizontal scroll bar
I want to print the page (div) if there is no horizontal scroll appear
Website: http://www.animefushigi.com Make your browser window skinny, note that there is no horizontal scroll
is there a way I can stop the horizontal scroll bar from ever showing
There is an horizontal scroll bar on my homepage only ( http://balloonup.com ) and
There are two popular closure styles in javascript. The first I call anonymous constructor
There is previous little on the google on this subject other than people asking
Scrolling a TStringGrid using its horizontal scroll bar will scroll a column at a
I'm interested in creating a horizontal scroll view that snaps to the viewed item,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.