[PB] How to restrict the use of the mouse buttons to scroll in the data window

Source: Internet
Author: User

How to restrict the scrolling of the data window with the middle mouse button

Q:
How can I restrict the scrolling of a data window in freeForm format? I don't know which line it will automatically scroll when I press the mouse button on her.
A:
If you want to disable the use of the middle key, write it in the other event in dw:
If message. number = 522 then return 1

By the way, let's talk about windows mouse system messages.
WM_MOUSEMOVE = 512; move the mouse
WM_LBUTTONDOWN = 513; left click to press
WM_LBUTTONUP = 514; left-click release
WM_LBUTTONDBLCLK = 515; double-click
WM_RBUTTONDOWN = 516; right-click and press
WM_RBUTTONUP = 517; right-click to release
WM_RBUTTONDBLCLK = 518; right-click
WM_MBUTTONDOWN = 519; middle click (3 key mouse Only)
WM_MBUTTONUP = 520; key release (3-Key mouse Only)
WM_MBUTTONDBLCLK = 521; double-click the key (3-Key mouse Only)
WM_MOUSEWHEEL = 522; middle scroll wheel (3-Key mouse Only)
These events can be captured in the control or window's other time, and then processed accordingly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.