Animasi Text Efek Mesin Ketik


Tips & Trik Delphi, Tips Belajar Delphi, Belajar Delphi Online
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
private
procedure
DisplaySlowText(S: String);
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.DisplaySlowText (S : String);
var
N : Integer;
begin
for N := 1 to Length (S) do
begin
Memo1.Text := Memo1.Text + S[N];
Application.ProcessMessages;
Sleep (165);
end;
end;


procedure
TForm1.Button1Click(Sender: TObject);
begin
DisplaySlowText(‘Tips Belajar Delphi Online……..’);
end;

end.

TransCODE Software