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

2 pemikiran pada “Animasi Text Efek Mesin Ketik

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s