unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, jpeg, ExtCtrls;
type
TForm1 = class(TForm)
img1: TImage;
lbl1: TLabel;
edt1: TEdit;
btn1: TButton;
procedure btn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
x:integer;
Form1: TForm1;
implementation
uses Unit2;
{$R *.dfm}
lbl2: TLabel;
rg2: TRadioGroup;
btn1: TButton;
lbl3: TLabel;
mm1: TMainMenu;
edt3: TEdit;
lbl4: TLabel;
edt4: TEdit;
lbl5: TLabel;
btn2: TButton;
btn3: TButton;
btn4: TButton;
N1: TMenuItem;
N2: TMenuItem;
N3: TMenuItem;
N4: TMenuItem;
img1: TImage;
procedure rg1Click(Sender: TObject);
procedure rg2Click(Sender: TObject);
procedure btn2Click(Sender: TObject);
procedure btn1Click(Sender: TObject);
procedure btn4Click(Sender: TObject);
procedure btn3Click(Sender: TObject);
procedure N2Click(Sender: TObject);
procedure N4Click(Sender: TObject);
procedure N3Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure edt1KeyPress(Sender: TObject; var Key: Char);
procedure edt3KeyPress(Sender: TObject; var Key: Char);
procedure edt2KeyPress(Sender: TObject; var Key: Char);
private
end;
end;
end;
procedure TForm2.rg2Click(Sender: TObject);
begin
case rg2.ItemIndex of
0: begin
t:=1.0;
end;
1: begin
t:=1.4;
end;
2: begin
t:=1.2;
end;
end;
end;
procedure TForm2.btn2Click(Sender: TObject);
begin
if edt1.text='' then
begin
ShowMessage('Ââåä³òü øëÿõ');
edt1.text:='0';
end;
if edt3.text='' then
begin
ShowMessage('Ââåä³òü äàíí³ ç òåõ.ïàñïîðòó');
edt3.Text:='0';
end;
edt1.Text:='';
edt2.Text:='';
edt3.Text:='';
edt4.Text:='';
rg1.ItemIndex:=-1;
rg2.ItemIndex:=-1;
edt1.SetFocus;
end;
procedure TForm2.N2Click(Sender: TObject);
beginShowMessage('Ïðîñòî ââåä³òü çàïèòóâàíí³ õàðàêòåðèñòèêè âàøîãî àâòî, îáåð³òü ìàðêó áåíçèíó, îáåð³òü ñòåï³íü íàâàíòàæåííÿ äîðîãè ³ ââåä³òü äîâæèíó øëÿõó');
end;
procedure TForm2.N4Click(Sender: TObject);
begin
Halt;
end;
procedure TForm2.N3Click(Sender: TObject);
begin
ShowMessage('Ïðîãðàìà ðîçðîáëÿëàñÿ äëÿ ëþäåé, ÿê³ çàâæäè õî÷óòü áóòè ó êóðñ³ ñâî¿õ ìîæëèâèõ âèòðàò íà ïàëüíå. Àâòîð: Êîðàáëüîâ ³êòîð');
end;
procedure TForm2.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Halt;
end;
procedure TForm2.edt1KeyPress(Sender: TObject; var Key: Char);
begin
if not (key in ['0'..'9',',',#8]) then key:=#0;
end;
procedure TForm2.edt3KeyPress(Sender: TObject; var Key: Char);
begin
if not (key in ['0'..'9',',',#8]) then key:=#0;
end;
procedure TForm2.edt2KeyPress(Sender: TObject; var Key: Char);
begin
unit Unit4;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, jpeg, ExtCtrls;
type
TForm4 = class(TForm)
img1: TImage;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form4: TForm4;
implementation
{$R *.dfm}
end.
unit Unit5;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, jpeg, ExtCtrls;
type
TForm5 = class(TForm)
img1: TImage;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form5: TForm5;
implementation
{$R *.dfm}
end.
Если не удалось найти и скачать доклад-презентацию, Вы можете заказать его на нашем сайте. Мы постараемся найти нужный Вам материал и отправим по электронной почте. Не стесняйтесь обращаться к нам, если у вас возникли вопросы или пожелания:
Email: Нажмите что бы посмотреть