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.

> 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).

I am not sure what bug you want to fix?

Micha

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

Reply via email to