首页  编辑  

控件的动画显示

Tags: /超级猛料/VCL/Control.控件使用开发和第三方控件/控件使用技巧/   Date Created:

procedure TForm1 . Button1Click ( Sender : TObject );

begin

 AnimateWindow ( Panel1 . Handle , 300 , AW_HIDE or AW_SLIDE or AW_HOR_POSITIVE );

end ;

procedure TForm1 . Button2Click ( Sender : TObject );

begin

 AnimateWindow ( Panel1 . Handle , 300 , AW_ACTIVATE or AW_HOR_POSITIVE );

end ;