frmAbouts.~pas
上传用户:szruida
上传日期:2007-06-01
资源大小:6518k
文件大小:1k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1.             unit frmabouts;
  2. interface
  3. uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
  4.   Buttons, ExtCtrls, XPMenu, jpeg, Shellapi, TFlatButtonUnit,
  5.   TFlatPanelUnit;
  6. type
  7.   TfrmAbout = class(TForm)
  8.     FlatButton1: TFlatButton;
  9.     FlatPanel1: TFlatPanel;
  10.     ProductName: TLabel;
  11.     Version: TLabel;
  12.     Copyright: TLabel;
  13.     lblemail: TLabel;
  14.     Image1: TImage;
  15.     procedure lblemailClick(Sender: TObject);
  16.     procedure lblemailMouseEnter(Sender: TObject);
  17.     procedure lblemailMouseLeave(Sender: TObject);
  18.     procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
  19.     procedure FlatButton1Click(Sender: TObject);
  20.   private
  21.     { Private declarations }
  22.   public
  23.     { Public declarations }
  24.   end;
  25. var
  26.   frmAbout: TfrmAbout;
  27. implementation
  28. {$R *.dfm}
  29. procedure TfrmAbout.lblemailClick(Sender: TObject);
  30. begin
  31.   ShellExecute(self.Handle, nil, 'www.elang.coa.net', nil, nil, sw_ShowNormal);
  32. end;
  33. procedure TfrmAbout.lblemailMouseEnter(Sender: TObject);
  34. begin
  35.   lblemail.Font.Color := clBlue;
  36. end;
  37. procedure TfrmAbout.lblemailMouseLeave(Sender: TObject);
  38. begin
  39.   lblemail.Font.Color := clWindowText;
  40. end;
  41. procedure TfrmAbout.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
  42. begin
  43.   AnimateWindow(self.Handle, 1800, AW_HIDE + AW_CENTER + AW_BLEND);
  44. end;
  45. procedure TfrmAbout.FlatButton1Click(Sender: TObject);
  46. begin
  47.   close();
  48. end;
  49. end.