Unconfigured Ad Widget

Collapse

Anúncio

Collapse
No announcement yet.

Splash Screen Com Barra de Progresso

Collapse
X
 
  • Filter
  • Tempo
  • Show
Clear All
new posts

  • Font Size
    #1

    Delphi Splash Screen Com Barra de Progresso

    Código PHP:
    program Granja;
    // Programador - Arthur Paixão
    // arthur.paixao@guiadohacker.com.br
    uses
      Forms
    ,
      
    Principalf in 'Principalf.pas' {Principal},
      
    Areaf in 'Areaf.pas' {Area},
      
    Galpaof in 'Galpaof.pas' {Galpao},
      
    Clientef in 'Clientef.pas' {Cliente},
      
    Saidaf in 'Saidaf.pas' {Saida},
      
    Relatoriof in 'Relatoriof.pas' {Relatorio},
      
    baixaf in 'baixaf.pas' {Baixa},
      
    Mortalidadef in 'Mortalidadef.pas' {Mortalidade},
      
    manubaixaf in 'manubaixaf.pas' {Manubaixa},
      
    ConsEstoquef in 'ConsEstoquef.pas' {ConsEstoque},
      
    sobref in 'sobref.pas' {Sobre},
      
    ImpRelatoriof in 'ImpRelatoriof.pas' {ImpRelatorio},
      
    Consultasf in 'Consultasf.pas' {Consultas},
      
    ImpEntradaf in 'ImpEntradaf.pas' {ImpEntrada},
      
    PassWord in 'PassWord.pas' {PasswordDlg},
      
    ImpMortalidadef in 'ImpMortalidadef.pas' {ImpMortalidade},
      
    ImpSaidaf in 'ImpSaidaf.pas' {ImpSaida},
      
    ImpClientesf in 'ImpClientesf.pas' {ImpClientes},
      
    Apres2f in 'Apres2f.pas' {Apres},
      
    Entradaf in 'Entradaf.pas' {Entrada};
     
    {
    $R *.RES}
     
    var
    i:shortint;
    maximo:shortint=0;
    divisor:shortint=19;
    begin
      Application
    .Initialize;
      
    Application.Title := 'GSJ2 - LloydSoft';
      
    with TApres.Create(nil) do
      try
      
    Gauge1.MaxValue:=100;
      
    Show;
      
    Update;
      
    Panel1.caption:='Criando Tela: Principal';
      
    Panel1.Repaint;
    Application.CreateForm(TPrincipalPrincipal);
      for 
    i:=1 to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Cadastro de Entradas';
      
    Panel1.Repaint;
    Application.CreateForm(TEntradaEntrada);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Cadastro de Mortalidade';
      
    Panel1.Repaint;
    Application.CreateForm(TImpMortalidadeImpMortalidade);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Impressão de Saida';
      
    Panel1.Repaint;
    Application.CreateForm(TImpSaidaImpSaida);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Impressão de Clientes';
      
    Panel1.Repaint;
    Application.CreateForm(TImpClientesImpClientes);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Password';
      
    Panel1.Repaint;
    Application.CreateForm(TPasswordDlgPasswordDlg);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Consultas';
      
    Panel1.Repaint;
    Application.CreateForm(TConsultasConsultas);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Impressão de Entradas';
      
    Panel1.Repaint;
    Application.CreateForm(TImpEntradaImpEntrada);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Impressão de Relatório';
      
    Panel1.Repaint;
    Application.CreateForm(TImpRelatorioImpRelatorio);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Estoque';
      
    Panel1.Repaint;
    Application.CreateForm(TConsEstoqueConsEstoque);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Sobre';
      
    Panel1.Repaint;
    Application.CreateForm(TSobreSobre);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Cadastro de Entradas';
      
    Panel1.Repaint;
    Application.CreateForm(TAreaArea);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Cadastro de Galpão';
      
    Panel1.Repaint;
    Application.CreateForm(TGalpaoGalpao);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Cadastro de Clientes';
      
    Panel1.Repaint;
    Application.CreateForm(TClienteCliente);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Cadastro de Saídas';
      
    Panel1.Repaint;
    Application.CreateForm(TSaidaSaida);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Relatório';
      
    Panel1.Repaint;
    Application.CreateForm(TRelatorioRelatorio);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Baixa';
      
    Panel1.Repaint;
    Application.CreateForm(TBaixaBaixa);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Mortalidade';
      
    Panel1.Repaint;
    Application.CreateForm(TMortalidadeMortalidade);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Criando Tela: Manutenção';
      
    Panel1.Repaint;
    Application.CreateForm(TManubaixaManubaixa);
      for 
    i:=maximo to (maximo+(100 div divisor)) do
      
    begin
      gauge1
    .progress:=i;
      
    maximo:=i;
      
    end;
      
    Panel1.caption:='Finalizando';
      
    Panel1.Repaint;
      finally
      
    Free;
      
    end;
      
    Application.Run;
    end
    ~# Criado pela [IN]Segurança #~
X
Working...
X