How can I make my form resize more smoothly?

后端 未结 5 1710
爱一瞬间的悲伤
爱一瞬间的悲伤 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:02

    procedure TForm1.WMEnterSizeMove(var Message:TWMMove);
    begin
      Self.DisableAlign;
    end;
    
    procedure TForm1.WMExitSizeMove(var Message:TWMMove);
    begin
      Self.EnableAlign;
    end;
    

提交回复
热议问题