📄 unit7.~pas
字号:
unit Unit7;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm7 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form7: TForm7;
implementation
uses Unit4, Unit1;
{$R *.dfm}
procedure TForm7.Button1Click(Sender: TObject);
begin
form7.Close;
form4.nameedit.text:='';
form4.nameedit.Text:=form4.nameedit.text;
form1.button1.Enabled:=true;
form4.ageSpinEdit.Value:=0;
form4.eatSpinEdit.Value:=80;
form4.bodySpinEdit.Value:=80;
form4.doctorSpinEdit.Value:=80;
form4.sleepSpinEdit.Value:=80;
save_edit(form4.nameedit);
save_spin(form4.ageSpinEdit);
save_spin(form4.eatSpinEdit);
save_spin(form4.doctorSpinEdit);
save_spin(form4.bodySpinEdit);
save_spin(form4.sleepSpinEdit);
form4.Close;
form1.Button1.Enabled:=true;
form1.walkButton.Enabled:=false;
form1.readbutton.Enabled:=false;
form1.getupbutton.Enabled:=false;
form1.sleepbutton .enabled:=false;
form1.eatButton.Enabled:=false;
form1.WCButton.Enabled:=false;
form1.bathbutton.Enabled:=false;
form1.doctorButton.Enabled:=false;
form1.watchTVbutton.Enabled:=false;
form1.ballbutton.Enabled:=false;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -