unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, ExtCtrls, StdCtrls;
type
TForm1 =
class(TForm)
Timer1: TTimer;
DateTimePicker1: TDateTimePicker;
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if now > DateTimePicker1.DateTime
then //bin mir nicht sicher ob die entsprechende property .DateTime heisst, musste ma nachgucken
begin
TTimer(Sender).Enabled := False;
beep;
beep;
beep;
Showmessage('
AUFSTEHEN!!');
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
Timer1.Enabled:=False;
end;
end.