<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 04.11.2015 18:29, Martin Grajcar
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGsWfGjO4sqDLN5NkRn-DoX8Uwv1coosLkZCivQsMr42Kf5_Dw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Wed, Nov 4, 2015 at 6:07 PM,
            Ondrej Pokorny <span dir="ltr"><<a
                moz-do-not-send="true" href="mailto:lazarus@kluug.net"
                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:lazarus@kluug.net">lazarus@kluug.net</a></a>></span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
              <div bgcolor="#FFFFFF" text="#000000"><span class=""></span>There
                is TControl.WndProc, but don't call it directly if you
                don't know what and why you are doing it.</div>
            </blockquote>
            <div><br>
            </div>
            <div>I found it in the meantime... and the usage seems to be
              obvious (if the parent instance and message type checks
              pass, then send it to the parent, otherwise call
              inherited). The tiny problem is that it does nothing at
              all.</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    This is why I said don't do that :)<br>
    <br>
    <blockquote
cite="mid:CAGsWfGjO4sqDLN5NkRn-DoX8Uwv1coosLkZCivQsMr42Kf5_Dw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"><span class="">
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>My workaround is to scroll manually, like</div>
                      <div><br>
                      </div>
                      <div><font face="monospace, monospace">TScrollingWinControl(Parent).ScrollBy

                          (0, ScrollAmount);</font><br>
                      </div>
                      <div><br>
                      </div>
                      <div>but this feels stupid as it duplicates the <font
                          face="monospace, monospace">ScrollAmount</font>
                        computation.<br>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </span> AFAIK forwarding of messages works only on
                Windows,</div>
            </blockquote>
            <div><br>
            </div>
            <div>This could be the reason for my code doing nothing. :(</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">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.</div>
            </blockquote>
            <div><br>
            </div>
            <div>That's ugly like hell and I can only guess the <font
                face="monospace, monospace">ScrollAmount</font>, which
              means that it can scroll much more or less than when the
              mouse it outside of my <font face="monospace, monospace">TControl</font>.<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Yes that's true and correct. AFAIK on other OS than Win, no change
    to do it differently. Maybe Zeljko knows some dirty tricks ;)<br>
    <br>
    Ondrej<br>
  </body>
</html>