问题描述
在Delphi 2009中,我发现在调用表单大小时发生的PageControl的闪烁可以通过将其 DoubleBuffered
属性设置为true来减少。
In Delphi 2009 I found that the flicker of a PageControl - which occurs during resizing of the form - can be reduced by setting its DoubleBuffered
property to true.
但是,如果我将控件添加到PageControl选项卡中,则无论DoubleBuffered属性设置如何,它们将闪烁。我也试过启用运行时主题。
However if I add controls to the PageControl tabsheets, they will flicker regardless of their DoubleBuffered property setting. I have also tried with and without runtime themes enabled.
推荐答案
设置 ParentBackground
到 False
为PageControl的组件帮助了很多。然而,这导致这些面板组件的颜色不同,现在它们都具有较暗的背景。也许这可以很容易地修复(不丢失主题支持)。
Setting ParentBackground
to False
for components on the PageControl helped a lot. However this results in a different color of these panel components, they all have a darker background now. Maybe this can be fixed easily (without losing Theme support).
我还安装了,它具有(TPageControl主动闪烁很多主题)。
I also installed VCL Fix Pack which has a fix for QC 56252 (TPageControl flickers a lot with active theming).
这篇关于如何在Delphi中减少PageControl闪烁?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!