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

  • SEARCH
  • Home
  • 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 9141509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:39:15+00:00 2026-06-17T09:39:15+00:00

I have inherited a Delphi 7 (VisualCLX) application to maintain and I want to

  • 0

I have inherited a Delphi 7 (VisualCLX) application to maintain and I want to filter some windows message like the mouse wheel (WM_MOUSEWHEEL) on the main form(TForm) of the application, is it possible on the Visual CLX ? How ?

I know that is possible on the VCL, but I’m looking for some solutions on the old Cross-Platform (CLX) …

Note

I need to disable the mousewheel event because it keeps changing the active page(TPageControl) and this is very annoying in Delphi with Component Library for Cross-Platform (CLX), so any other workaround that solve the problem is welcome …

  • 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-06-17T09:39:16+00:00Added an answer on June 17, 2026 at 9:39 am

    Filtering input messages in CLX is not simple. There appears to be nothing like the VCL’s OnMessage.

    You can stop mouse wheel events being handled by CLX page controls with a simple interposer. Add this code to your main form, before the declaration of your main form class.

    type
      TPageControl = class(QComCtrls.TPageControl)
      protected
        function DoMouseWheel(Shift: TShiftState; WheelDelta: Integer; 
          const MousePos: TPoint): Boolean; override;
      end;
    

    And then in the implementation section of the unit, add this:

    function TPageControl.DoMouseWheel(Shift: TShiftState; WheelDelta: Integer; 
      const MousePos: TPoint): Boolean;
    begin
      Result := True;
    end;
    

    If you have a number of page controls on different forms then you should declare the interposer in a unit that can be shared by all the forms in your app. Or maybe even derive a proper grown-up sub-class.

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

Sidebar

Related Questions

I have inherited an application that was built in Delphi, using clx components (TcxMaskEdit,
I have a Delphi application which spawns 6 anonymous threads upon some TTimer.OnTimer event.
We have inherited an application (Java-based, running on WebLogic 10.3.5) that makes extensive use
I have inherited a Drupal 6 site to maintain. I am new to Drupal
I have inherited some HTML code and have been asked to align the two
I have inherited couple of .Net (C#) application which does not have any tracing
I have inherited an application that logs the results of certain daily commands that
I have a multi-threaded Delphi 6 Pro application that I am currently working on
I have inherited an Adobe AIR application, and am attempting to debug it through
Anyone have any good resources for Delphi and Windows Aero on 7 or Vista?

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.