标题:窗体特效
取消只看楼主
yuutian
Rank: 7Rank: 7Rank: 7
等 级:黑侠
帖 子:137
专家分:686
注 册:2010-10-27
结帖率:100%
 问题点数:0 回复次数:0 
窗体特效
特效一:
procedure TForm1.Button1Click(Sender: TObject);
var
    r:thandle;
    i:integer;
    begin
      for i:=1 to trunc(width/1.414) do
      begin
        r:=CreateEllipticRgn(trunc(width/2)-i,trunc(height/2)-i,trunc(width/2)+i,trunc(height/2)+i);
        SetWindowRgn(handle,r,true);
        Application.ProcessMessages;
        sleep(1);
      end;
    end;


特效二:
procedure TForm1.FormCreate(Sender: TObject);
    begin
      AnimateWindow (Handle, 400, AW_CENTER);
    end;
搜索更多相关主题的帖子: 400 procedure sleep 
2011-07-09 22:52



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-345107-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.236370 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved