Hi All
I have a question concerning the ScrollBy method of TScrollBox.
I have a simple Form with a scrollBox Height set to 300 and inside the scrollBox a TPaintBox with height set to 1200.
I also have 12 lines text drawn on the TPaintbox starting from the top at 100 pixel intervals.
With the vertical scrollbar visible, I can move up and down within the ScrollBox as expected.
I also have two buttons on the form, one with ScrollBox1.ScrollBy(0, 100) and the other with ScrollBox1.ScrollBy(0, -100) in the OnClick methods
Pressing either buttons during runtime does not scroll either up or down.
I am using Lazarus 4.3 on a Raspberry PI with OS BookWorm, I also have an old version of Lazarus on my Windows 10 laptop and this also does not work.
However, I also have an old version of Delphi (7) and replicated the program and this worked exactly as expected, pressing either button moves up and down within the scrollbox.
As a final step, I saved the Delphi 7 program and used the Delphi Conversion tool in Lazarus to see if there was any difference and there was none.
Is there something I am missing using the ScrollBy method in Lazarus compared to how Delphi implements this.
Regards Andrew