基于 TGraphicControl 的对象容器

Object container based on TGraphicControl

我正在使用 TScrollBox 使自定义列表包含许多控件(Tlabels、Timages、Tshapes)

问题是当我使用 TPanels 作为每个项目的容器时,列表在添加大约 100 个项目后变得缓慢且闪烁。

我正在寻找基于 TGraphicControl 的 TPanel 替代品以提高性能

也可以转Form.DoubleBuffered := True防止闪屏

我没有在面板容器中使用控件,而是使用 TPaintBox 为每一行使用建议的 canvas 进行绘制