unit Unit1;
interface
uses
Windows,Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ComCtrls, ExtCtrls,
Db, IBCustomDataSet, IBQuery, IBDatabase;
type
TForm1 =
class(TForm)
Panel1: TPanel;
Panel2: TPanel;
Panel3: TPanel;
Label1: TLabel;
Label2: TLabel;
Panel4: TPanel;
Panel5: TPanel;
Label3: TLabel;
Label4: TLabel;
MonthCalendar1: TMonthCalendar;
IBDatabase1: TIBDatabase;
IBTransaction1: TIBTransaction;
IBQuery1: TIBQuery;
Button1: TButton;
Label5: TLabel;
ComboBox1: TComboBox;
Label6: TLabel;
Label7: TLabel;
procedure FormActivate(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
type
Test =
class(TThread)
private
{ Private-Deklarationen }
public
protected
procedure Execute;
override;
end;
var
Form1 : TForm1;
Test : TestThread;
implementation
{$R *.DFM}
procedure Test.Execute;
begin
sleep(5000);
end;
procedure TForm1.FormActivate(Sender: TObject);
begin
//Hier folgt was wichtiges
end;
procedure TForm1.Button1Click(Sender: TObject);
var datum : TDate;
begin
datum := MonthCalendar1.Date;
// diesen Aufruf würden wir gerne machen Test.create(false,label1,label2,progressbar);
end;
end.