Hi,
I have also problems with ScrollingWinControl. It seems that the Lazarus behaviour is different from Delphi. If you create a sample project with a Form1 and then put a button into the form and then write:
procedure TForm1.Button1Click(Sender: TObject);
begin
Height := 500;
VertScrollbar.Range := 1000;
VertScrollbar.Position := 250;
end;
The height of the moveable button should be 50% of the full height of the window and it should be centered, the partitions are 25% above the movable button, 50% moveable button and 25% below the moveable button. In Delphi the behaviour is OK, in Lazarus, the moveable button is only perhaps 10% of the window height instead of 50%.
Is it a bug or is the Lazarus behaviour different?