Unit2.pas
上传用户:daoqigc
上传日期:2021-04-20
资源大小:2795k
文件大小:1k
- unit Unit2;
- interface
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls;
- type
- TForm2 = class(TForm)
- Button1: TButton;
- Button2: TButton;
- Edit1: TEdit;
- Edit2: TEdit;
- Label1: TLabel;
- Label2: TLabel;
- procedure Edit1Change(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var Form2: TForm2;
- implementation
- {$R *.dfm}
- procedure TForm2.Edit1Change(Sender: TObject);
- begin
- Button1.Enabled := (Edit1.Text<>'') and (Edit2.Text<>'');
- end;
- end.