Mira este ejemplo a ver si con esto te sirve:
Código:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
Procedure MiEvento(Sender:TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
FTimer : TTimer;
begin
FTimer := TTimer.Create(Self);
FTimer.Enabled := True;
FTimer.Interval := 5000;
FTimer.OnTimer:=MiEvento;
end;
Procedure TForm1.MiEvento(Sender:TObject);
begin
ShowMessage('Ya está Tonio');
end;
end.
Un Saludo.