Still looking for ways to improve, even though thanks to the help here, my apps work fine now
One issue are tables. Right now, I've got a custom table control that creates a full height bitmap, and then writes it on a full height control within a scrollbox. Works well for small tables, but tables with like 800 lines start to get slow.
I wonder what the best route to optimize would be, maybe someone has experience regarding the performance impact of the following alternatives I thought of:
1. Replace TScrollBox with a single scrollbar at the side of the control, in the background still create the full size picture, but only paint the currently visible part on the canvas.
2. Replace TScrollBox with a single scrollbar at the side of the control, and create only a part of the visible both in internal picture and canvas.
Logically, I would think the later would be faster, but since I cache the full size bitmap and only overlay (focus, hover, ...) changes to the foreground, I might have to give up the full size background cache (or use a full size background cache and a partial overlay ...).
Would this have positive impact on scrolling at all?