Unit1.pas
资源名称:xiaobai.rar [点击查看]
上传用户:autowell
上传日期:2022-06-21
资源大小:16754k
文件大小:1k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit Unit1;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls;
- type
- TForm1 = class(TForm)
- Label1: TLabel;
- Label2: TLabel;
- Edit1: TEdit;
- Edit2: TEdit;
- Label3: TLabel;
- Label4: TLabel;
- ComboBox1: TComboBox;
- Label5: TLabel;
- ComboBox2: TComboBox;
- Button1: TButton;
- Button2: TButton;
- Button3: TButton;
- Button4: TButton;
- procedure Button1Click(Sender: TObject);
- procedure Button3Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- procedure Button4Click(Sender: TObject);
- procedure Button1MouseMove(Sender: TObject; Shift: TShiftState; X,
- Y: Integer);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.dfm}
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- edit1.Text:='';
- edit2.Text:='';
- end;
- procedure TForm1.Button3Click(Sender: TObject);
- begin
- close;
- end;
- procedure TForm1.Button2Click(Sender: TObject);
- begin
- MessageDlg('这是教师信息窗体!!!',mtInformation,[mbok],0);
- end;
- procedure TForm1.Button4Click(Sender: TObject);
- begin
- showmessage('这是显示教师信息的窗体!!');
- end;
- procedure TForm1.Button1MouseMove(Sender: TObject; Shift: TShiftState; X,
- Y: Integer);
- begin
- showMessage('鼠标移动!!');
- end;
- end.