How can I make my form resize more smoothly?

后端 未结 5 1697
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 18:57

When resizing a form with many controls, the form looks bad because of flickering. What are some tips to have a smoother form resizing?

5条回答
  •  无人及你
    2021-01-31 20:00

    Complex forms are often made up of nested panels, and the repaint process may cause flickering. If this is the case with your project there are two easy solutions that might help:

    1. Disable the property FullRepaint on your panels.
    2. Enable the property DoubleBuffered on your form. You won't find this property on the object inspector, so put DoubleBuffered := true; in FormCreate.

提交回复
热议问题