Re: [Lazarus] Forwarding events/messages

2015-11-05 Thread zeljko
AFAIK forwarding of messages works only on Windows, so if you need it cross-platform, you will have to use "TScrollingWinControl(Parent).ScrollBy (0, ScrollAmount);" in any case. So this should be the correct way to do it. - Zeljko, correct me if I am wrong, you are the specialist here :)

[Lazarus] Forwarding events/messages

2015-11-04 Thread Martin Grajcar
I'd like to forward a TLMVScroll message to the parent component as a workaround for controls preventing parents from receiving mouse wheel events (I couldn't find out how to let the parents receive them). The problem is that the handler is PROCEDURE TWhatever.WMVScroll(VAR Message :

Re: [Lazarus] Forwarding events/messages

2015-11-04 Thread Ondrej Pokorny
On 04.11.2015 17:54, Martin Grajcar wrote: I'd like to forward a TLMVScroll message to the parent component as a workaround for controls preventing parents from receiving mouse wheel events (I couldn't find out how to let the parents receive them). The problem is that the handler is

Re: [Lazarus] Forwarding events/messages

2015-11-04 Thread Martin Grajcar
On Wed, Nov 4, 2015 at 6:07 PM, Ondrej Pokorny wrote: > On 04.11.2015 17:54, Martin Grajcar wrote: > > I'd like to forward a TLMVScroll message to the parent component as a > workaround for controls preventing parents from receiving mouse wheel > events (I couldn't find out

Re: [Lazarus] Forwarding events/messages

2015-11-04 Thread Ondrej Pokorny
On 04.11.2015 18:29, Martin Grajcar wrote: On Wed, Nov 4, 2015 at 6:07 PM, Ondrej Pokorny > wrote: There is TControl.WndProc, but don't call it directly if you don't know what and why you are doing it. I found it in the meantime... and