That is what I thought I saw a while ago too, so I wrote a mouse wheel capture component back then to supplant the Form's WindowProc with my own one. But that doesn't seem to work with this other component (TVirtualTree). It doesn't do anything special, just has a method in it's protected section for message CM_MOUSEWHEEL. But my old capture component doesn't get the message anymore but the TVirtualTree does.

Phil.

Rohit Gupta wrote:
My interpretation of what I saw was different. I observed that the parent of the component was getting the messages. So I simply got the parent panel to pass them on as events to the component. This may or may not work for you.

Date sent:      Thu, 27 Jul 2006 09:17:51 +1200
From:   Phil Middlemiss <[EMAIL PROTECTED]>
Organization:   MTS Ltd
To:     NZ Borland Developers Group - Delphi List <[email protected]>
Subject:        [DUG] Capturing mouse wheel
Send reply to:  NZ Borland Developers Group - Delphi List <[email protected]>
        <mailto:[EMAIL PROTECTED]>
        <mailto:[EMAIL PROTECTED]>

We have a component that can use the mouse wheel - unfortunately, we also use another component (not ours) that uses the mouse wheel. The standard windows convention seems to be that whatever window has the focus gets to process the message first. So even though the mouse is over our component when the mouse wheel is rolled, the other component gets the message.

I seem to remember some time ago seeing how to replace the main TApplication message handler with your own, but can't remember how now. Is this possible? What is the technique?

Phil.
Regards

Rohit

======================================================================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
PH (649) 489-2280 FX (649) 489-2290
email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
======================================================================


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi



begin:vcard
fn:Phil Middlemiss
n:Middlemiss;Phil
org:Vision Software, MTS Ltd
email;internet:[EMAIL PROTECTED]
title:Project Leader
tel;work:+64 7 3480001
tel;cell:+64 27 4592648
x-mozilla-html:TRUE
url:http://www.tumonz.co.nz
version:2.1
end:vcard

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to