Advertisement
DraKiNs

[COD] Splash Fade DELPHI

Jul 7th, 2011
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.61 KB | None | 0 0
  1. // Apenas crie dois frames:
  2. // frmSplash  e  TfrmProg
  3. procedure TfrmProg.FormCreate(Sender: TObject);
  4.     begin
  5.         //criar o splash
  6.         frmSplash := TfrmSplash.Create (Application);
  7.         frmSplash.Show;
  8.         frmSplash.Update;
  9.  
  10.         frmProg.visible := false; // deixar o main invísivel enquanto inicia
  11.  
  12.         // efeito fade no splash
  13.         while frmSplash.AlphaBlendValue < 255 do
  14.         begin
  15.             sleep(10);
  16.             frmSplash.AlphaBlendValue:= frmSplash.AlphaBlendValue + 2;
  17.         end;
  18.  
  19.         //fechar splash
  20.         frmSplash.free;
  21.  
  22.         //mostrar o main de volta
  23.         frmProg.visible := true;
  24.     end;
  25. end
  26.  
  27. //Criado por Bruno
  28. // www.ips-team.blogspot.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement