Hello,
I tested this in Lazarus 1.6.4 and in CodeTyphon 5.8. Version : Win32 on Windows 10.
In a simple example, I put a TScrollBox, and in it a Tbutton and a TImage (with a Picture to see what appends).
And 2 buttons outside the Scrollbox, to scroll it, and 2 labels to control :
procedure TForm1.ButtonUpClick(Sender: TObject);
begin
ScrollBox1.ScrollBy(0, 100);
ScrollBox1.Repaint; // to avoid shadow images
Label1.Caption := IntToStr(Image1.Top);
Label2.Caption := IntToStr(ButtonTest.Top);
end;
The test button scrolls correctly, but the image doesn't move.
Does someone know why ? Is it a bug ?
Thanks.