为什么80%的码农都做不了架构师?>>>
unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, ExtCtrls, StdCtrls;typeTForm1 = class(TForm)Timer1: TTimer;Button1: TButton;procedure Timer1Timer(Sender: TObject);procedure Button1Click(Sender: TObject);end;varForm1: TForm1;implementation{$R *.dfm}uses Unit2; {本例还包含另一个窗体 Form2}//标题显示当前窗体的类名
procedure TForm1.Timer1Timer(Sender: TObject);
beginText := Screen.ActiveForm.ClassName;
end;//激活另一个窗体一试
procedure TForm1.Button1Click(Sender: TObject);
beginForm2.Show;
end;end.