uAbout.pas
上传用户:pegasus
上传日期:2013-04-14
资源大小:3825k
文件大小:1k
源码类别:

教育系统应用

开发平台:

Delphi

  1. unit uAbout;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5.   Dialogs, StdCtrls, ExtCtrls,ShellAPI, jpeg;
  6. type
  7.   TFormAbout = class(TForm)
  8.     Image1: TImage;
  9.     Label1: TLabel;
  10.     Label4: TLabel;
  11.     Label2: TLabel;
  12.     BtnOK: TButton;
  13.     Label3: TLabel;
  14.     procedure Label2Click(Sender: TObject);
  15.     procedure Label2MouseEnter(Sender: TObject);
  16.     procedure Label2MouseLeave(Sender: TObject);
  17.     procedure BtnOKClick(Sender: TObject);
  18.   private
  19.     { Private declarations }
  20.   public
  21.     { Public declarations }
  22.   end;
  23. var
  24.   FormAbout: TFormAbout;
  25. implementation
  26. {$R *.dfm}
  27. procedure TFormAbout.Label2Click(Sender: TObject);
  28. begin
  29.    Shellexecute(handle,nil,pchar('mailto:guangbin240@yahoo.com.cn'),nil,
  30.   nil,sw_shownormal);
  31. end;
  32. procedure TFormAbout.Label2MouseEnter(Sender: TObject);
  33. begin
  34.   Label2.Font.Color:=clBlue;
  35. end;
  36. procedure TFormAbout.Label2MouseLeave(Sender: TObject);
  37. begin
  38.   Label2.Font.Color:=clBlack;
  39. end;
  40. procedure TFormAbout.BtnOKClick(Sender: TObject);
  41. begin
  42.   Close;   //  关闭窗体
  43. end;
  44. end.