Delphi Skyline
سه شنبه 13 بهمن 1383, 20:16 عصر
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
// procedure aclick(Sender: TObject);
private
{ Private declarations }
public
a:tbutton;
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
a:=tbutton.Create(self);
a.Parent:=self;
a.Top:=10;
a.Left:=10;
a.Caption:='New Button';
a.Font.Name:='tahoma';
end;
end.
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
// procedure aclick(Sender: TObject);
private
{ Private declarations }
public
a:tbutton;
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
a:=tbutton.Create(self);
a.Parent:=self;
a.Top:=10;
a.Left:=10;
a.Caption:='New Button';
a.Font.Name:='tahoma';
end;
end.