[DUG] Capturing mouse wheel

Phil Middlemiss phil at tumonz.co.nz
Thu Jul 27 10:15:18 NZST 2006


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 <phil at tumonz.co.nz>
> Organization:	MTS Ltd
> To:	NZ Borland Developers Group - Delphi List <delphi at ns3.123.co.nz>
> Subject:	[DUG] Capturing mouse wheel
> Send reply to:	NZ Borland Developers Group - Delphi List <delphi at ns3.123.co.nz>
> 	<mailto:delphi-request at ns3.123.co.nz?subject=unsubscribe>
> 	<mailto:delphi-request at ns3.123.co.nz?subject=subscribe>
>
> 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 rohit at cfl.co.nz  or  r.gupta at xtra.co.nz
> ======================================================================
>
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phil.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
Url : http://ns3.123.co.nz/pipermail/delphi/attachments/20060727/e9eb73a0/phil-0001.vcf


More information about the Delphi mailing list