[DUG] Capturing mouse wheel
Phil Middlemiss
phil at tumonz.co.nz
Thu Jul 27 10:50:48 NZST 2006
Ok, I've tracked through the VCL code to see what happens and the issue
is with TForm. Mousewheel messages get special handling and are passed
to TCustomForm.MouseWheelHandler which directs the message to the active
control.
So I can just override that method in the main app form and direct it to
our control if the mouse is over it.
Phil.
Phil Middlemiss wrote:
> 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.
> _______________________________________________
> 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/746c34c5/phil.vcf
More information about the Delphi
mailing list