Bug Report T195976
Visible to All Users

TcxCustomTextEdit incorrectly handles mouse wheel events

created 10 years ago

[DevExpress Support Team: CLONED FROM Q538627: How to redirect mouse wheel message to a cxGrid]
I'm working on upgrading fra v12 to newest v14,
The example does not work in v14. And I cannot get it to work. (I suspect a problem in v14)
It is only after selecting one of the controls it works a bit and the Richedit does not work at all.
Also you have these minor problems in the example:
This code:
Result := (Assigned(Control) AND (not Control.Focused));
   if(Control is TcxControl) or (Control.Parent is TcxControl) then

  1. Access viol. if Result = nil.
  2. FindVCLWindow is STILL broken in XE6 as it has been since 2010 at least.
    You have to make your own if your layout is more complex.
    (this is just a note to other developers)
  3. you also need ScreenToClient(MousePos);
    Can you make your sample function with v14 please?
    I have a lot of trouble getting wheel to function in my app. as it did before. But I guess if your sample works I can also find how to make my app do it.
Show previous comments (5)

    oh, out postings crossed, I will also try your workaround, thanks.

      I could not get your suggestion with TcxCustomTextEdit.IsMouseWheelHandleNeeded working.
      Actually when I managed to apply it all wheel scroll stopped working, strange. I undoed the changes.
      NB DoIsMouseWheelHandleNeeded is private so I had to modify access for it.

      DevExpress Support Team 10 years ago

        I've attached the sample recompiled with these changes from the Q538627 thread and it seems it works as expected on my side. Please take a look at the attachment.

        Answers approved by DevExpress Support

        created 10 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.