Ver Mensaje Individual
  #1  
Antiguo 20-06-2015
pokexperto1 pokexperto1 is offline
Miembro
NULL
 
Registrado: dic 2013
Posts: 35
Reputación: 0
pokexperto1 Va por buen camino
Question Esperar a que termine un proceso y luego continuar

Tengo un codigo:
Código Delphi [-]
procedure Tjuego.hablarTimer(Sender: TObject);
begin
letra:=letra+1;
Memo.Text := Memo.Text + Copy(textomemo, letra, 1);
Hablar.Enabled := letra <= Length(textomemo);
acabado:=true;
end;

procedure Tjuego.Texto(texto: string);
begin
acabado:=false;
panelmemo.Visible:=true;
textomemo:=texto;
hablar.Enabled:=true;
end;

Yo llamo al procedimiento (pongo un ejemplo)
Código Delphi [-]
texto('Hola')
Como hago para que cuando termine ese texto pueda llamar a otro. No se si me explico.

Por ejemplo:
Código Delphi [-]
procedure boton;
begin
texto('Hola')
if acabado then//aquí iría el codigo de lo que os estoy hablando
texto('Adios');
Responder Con Cita