CSDN博客

img topspeedbuilder

早期的程序

发表于2004/10/8 23:18:00  963人阅读

      这是我学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 日++++++++++

阅读全文
0 0

相关文章推荐

img
取 消
img