[CODE]
unit UAngriffsplanerH;
interface
uses
Winapi.Windows,
Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.StdCtrls,
Vcl.ExtCtrls,
Vcl.ComCtrls,
Vcl.Menus, System.UITypes, UTimer;
type
TFAngriffsplaner =
class(TForm)
Panel1: TPanel;
Panel2: TPanel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
BalloonHint1: TBalloonHint;
Panel3: TPanel;
Panel4: TPanel;
DatePicker: TDateTimePicker;
Button1: TButton;
ListBox1: TListBox;
TimePicker: TDateTimePicker;
ComboBox1: TComboBox;
NowTimer: TTimer;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
MainMenu1: TMainMenu;
Datei1: TMenuItem;
Einstellungen1: TMenuItem;
Bearbeiten1: TMenuItem;
zurcksetzen1: TMenuItem;
imer1: TMenuItem;
Showmessages1: TMenuItem;
An1: TMenuItem;
Aus1: TMenuItem;
procedure Button1Click(Sender: TObject);
function GetRunTime(sx, sy, zx, zy:integer):real;
procedure FormCreate(Sender: TObject);
procedure NowTimerTimer(Sender: TObject);
function SecondsToTime(Seconds: Integer): TDateTime;
procedure zurcksetzen1Click(Sender: TObject);
procedure An1Click(Sender: TObject);
procedure Aus1Click(Sender: TObject);
procedure imer1Click(Sender: TObject);
private
Datum,Zeit,DateTimeA,StartTime : TDateTime;
combxi,Seconds,Minutes,Hours,Days,RunTime : Integer;
unitspeed : Real;
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
FAngriffsplaner: TFAngriffsplaner;
FTimer: TFTimer;
implementation
{$R *.dfm}[/CODE]