I have built a simple Hex editor. My goal is to open big files without lagging, like XVI32 on Windows, but I am using Linux (Ubuntu Cinnamon 24.04). To do that I would like to refill a TStringrid with just few cells any time the scrollbar slides. To emulate this effect actually I am using a vertical TTrackBar. But the result is not optimal because when I use arrows on the grid, I hurt against the end of page and I cannot go to the next.
I'd like to give to the scrollbar the function that actually has TTrackBar, so I have the same effect with arrow also.
I attach my code fo reference.
Thank you