* Micha Nelissen <[EMAIL PROTECTED]> [Wed, 30 Jan 2008 22:27:36 +0100]:
Andrey Gusev wrote:
> -        MoveWindowOrgEx(PaintMsg.DC, ORect.Left, ORect.Top);
> +        MoveWindowOrgEx(PaintMsg.DC, -ORect.Left, -ORect.Top);

No. ORect.Left is offset from Win32 -> LCL. So if LCL draws at (0,0)
it
should actually be at (ORect.Left, ORect.Top), so the code is correct.

Opposite scrolling of TPaintBox mist be explanable, anyway.
Ether by message proccessing bug, or TPaintBox implementation.

That's unintelligible (now) to me, why Panel being placed together
with TPaintBox react to scroll otherwise then without him ?
Get project from http://mail.rambler.ru/mail/mail.cgi?mode=obj;mbox=INBOX%26r%3D5f6a;what=6827, my post

> With these changes TScroolBox behaviour is almost adequate.
> Some problems with child controls positioning when scroll still
exists.

Hint: try looking at GetLCLClientBoundsOffset (if you didn't already).

Thanks fo hint, tha't is was missing part, to my investigations.

I am not sure what bug you want to fix?

My principal trouble is http://bugs.freepascal.org/view.php?id=10471
Mattias Gaertner have told way, http://mail.rambler.ru/mail/mail.cgi?mode=obj;mbox=INBOX%26r%3D5f6a;what=4702
I simply fairly try to understand all up to the end.

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to