home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 August
/
Chip_1999-08_cd.bin
/
tema
/
Ozogan
/
RUNTIME
/
APLIKACE.EXE
/
BANKOMAT
/
PROGRAM
/
CODE01.KL3
< prev
next >
Wrap
Text File
|
1999-04-13
|
1KB
|
55 lines
Program code01;
procedure TForm.FormCreate(Sender: TObject);
begin
Form.Left:=(SysVarGet('fleft')+(SysVarGet('fwidth')/2 ))-(Form.Width/2);
Form.Top :=(SysVarGet('ftop') +(SysVarGet('fheight')/2))-(Form.Height/2);
DateTimePicker1.Date:=Date;
If Form.Left<=0 Then Begin
Form.Left:=0;Form.Top:=0;
End;
If SysVarGet("op")=1 Then Begin
Form.Caption:="Vlo₧enφ novΘho zßznamu";
End
Else Begin
Form.Caption:="Oprava vlo₧enΘho zßznamu";
DateTimePicker1.Date:=StrToDate(SysVarGet("datu"));
Edit1.Text:=Trim(RealToStr(Abs(SysVarGet("cena")),15,2));
Edit2.Text:=Trim(SysVarGet("pozn"));
End;
If SysVarGet("oper")=-1 Then Begin
RadioGroup1.ItemIndex:=1;
RadioGroup1.Tag:=-1;
End
Else Begin
RadioGroup1.ItemIndex:=0;
RadioGroup1.Tag:=1;
End;
// Panel1.Tag:=1;
end;
procedure TForm.RadioGroup1Click(Sender: TObject);
Var
exit:Boolean;
begin
exit:=False;
If RadioGroup1.ItemIndex=1 Then Begin
RadioGroup1.Tag:=-1;
End;
If RadioGroup1.ItemIndex=0 Then Begin
RadioGroup1.Tag:=1;
End;
end;
procedure TForm.Button1Click(Sender: TObject);
begin
SysVarSet("rest",1);
SysVarSet("datu",DateToStr(DateTimePicker1.Date));
SysVarSet("cena",Abs(StrToReal(Edit1.Text)));
SysVarSet("pozn",Edit2.Text);
SysVarSet("oper",RadioGroup1.Tag);
Form.Close;
end;
end.