早期的程序

      这是我学DELPHI的第一个程序,做的不好,请多加原谅!
      借用了我的一个好朋友(夏华伟先生)的简介编写出来的个人简历,很简陋。用Showmessage直接编写,所以极其简单,程序代码如下:


unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, WinSkinData, jpeg, ExtCtrls, Menus;

type
  TForm1 = class(TForm)
    Button1: TButton;
    SkinData1: TSkinData;
    Button2: TButton;
    Label1: TLabel;
    Image1: TImage;
    MainMenu1: TMainMenu;
    N1: TMenuItem;
    N2: TMenuItem;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure N2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
  Uses unit2;
{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  Showmessage('此人名叫夏华伟');
  Showmessage('性别:男');
  Showmessage('年龄:24');
  Showmessage('婚否:未');
  Showmessage('大概就那么多了,时间不等人,就此终止吧');
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  Close;
end;

procedure TForm1.N2Click(Sender: TObject);
begin
  Form2.ShowModal;
end;

end.


                                                          +++++++++ 写于 2004 .5.25 日++++++++++

你可能感兴趣的:(程序天地,button,delphi,forms,interface,windows,image)