[Lazarus] [OT] - Small PC Suggestions?

Lee Jenkins lee at datatrakpos.com
Sun Jun 8 05:46:03 CEST 2008


On Sat, 7 Jun 2008 12:33:26 +0300
"Kostas Michalopoulos" <badsector at slashstone.com> wrote:

> > For all mouse messages the delegation to the controls is done in
> > TWinControl.IsControlMouseMsg.
> 
> I'm not sure i understand what this function does. I'll check it
> later. However there seems to be too much checking for TWinControls
> there :-).

If a TWinControl receives a MouseDown or MouseWheel it delegates it
to its controls.

 
> > Do you receive OnMouseDown events for the TPaintBox?
> 
> Yes.
> 
> > It already works here. Can you provide an example,
> > where it does not work?
> 
> Yes, i'm attaching the program i used to test my patch. Note that it
> might not be needed under interfaces which send the wheel messages to
> the correct control themselves (such as GTK+, GTK+2, Qt, etc) but it
> is needed under interfaces which send the wheel messages to the
> window (such as Win32).

In your example the gtk sends the message to Form1 and
TWinControl.IsControlMouseMsg sends it further to TPaintBox.

Where does the win32 interface send the wheel messages to?

Mattias



More information about the Lazarus mailing list