SrmAbout.~pa
上传用户:tj00001
上传日期:2007-01-07
资源大小:672k
文件大小:3k
源码类别:

行业应用

开发平台:

Delphi

  1. //---------------------------------------------------------------------------
  2. //(R)CopyRight KivenSoft International ,inc 1999
  3. //单元名称:启动屏幕单元
  4. //程序名称:电子书库
  5. //作    者:李会文
  6. //开始时间:1998.07.28
  7. //最后修改:1999.07.22
  8. //备注:此单元定义了SRM文件的读写接口
  9. //---------------------------------------------------------------------------
  10. unit SrmAbout;
  11. interface                          
  12. uses
  13.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  14.   StdCtrls, ExtCtrls, ShellApi, Buttons, KvLabel;
  15. type
  16.   TAboutForm = class(TForm)
  17.     Panel2:TPanel;
  18.     Panel1:TPanel;
  19.     ProgramIcon:TImage;             
  20.     Image1:TImage;
  21.     kivenMemo:TMemo;
  22.     OkSpeedButton: TSpeedButton;
  23.     FriendLabel: TKvLabel;
  24.     HomePageLabel: TKvLabel;
  25.     EMailLabel: TKvLabel;
  26.     KvLabel1: TKvLabel;
  27.     procedure ChineseInfo1Click(Sender: TObject);
  28.     procedure FormShow(Sender: TObject);
  29.     procedure EMailLabelClick(Sender: TObject);
  30.     procedure HomePageLabelClick(Sender: TObject);
  31.     procedure FormKeyPress(Sender: TObject; var Key: Char);
  32.     procedure OkSpeedButtonClick(Sender: TObject);
  33.     procedure FriendLabelClick(Sender: TObject);
  34.     procedure FormCreate(Sender: TObject);
  35.     procedure KvLabel1Click(Sender: TObject);
  36.   private
  37.     FontFlag:boolean;
  38.     { Private declarations }
  39.   public
  40.     { Public declarations }
  41.   end;
  42. var
  43.   AboutForm: TAboutForm;
  44. implementation
  45. uses SrmConst;
  46. {$R *.DFM}
  47. procedure TAboutForm.ChineseInfo1Click(Sender: TObject);
  48. begin
  49.   Panel1.Visible:=false;
  50. end;
  51. procedure TAboutForm.FormShow(Sender: TObject);
  52. begin
  53.   FontFlag:=false;
  54. end;
  55. procedure TAboutForm.EMailLabelClick(Sender: TObject);
  56. begin
  57.   ShellExecute(Application.Handle,nil,csEMail,nil,nil,SW_SHOWNORMAL);
  58. end;
  59. procedure TAboutForm.FriendLabelClick(Sender: TObject);
  60. begin
  61.   ShellExecute(Application.Handle,nil,csFriend,nil,nil,SW_SHOWNORMAL);
  62. end;
  63. procedure TAboutForm.HomePageLabelClick(Sender: TObject);
  64. begin
  65.   ShellExecute(Application.Handle,nil,csHomePage,nil,nil,SW_SHOWNORMAL);
  66. end;
  67. procedure TAboutForm.FormKeyPress(Sender: TObject; var Key: Char);
  68. begin
  69.   if Key=#13 then OkSpeedButtonClick(self);
  70. end;
  71. procedure TAboutForm.OkSpeedButtonClick(Sender: TObject);
  72. begin
  73.   Close;
  74. end;
  75. procedure TAboutForm.FormCreate(Sender: TObject);
  76. begin
  77.   OkSpeedButton.Glyph.LoadFromResourceName(HInstance,'OKBMP');
  78. end;
  79. procedure TAboutForm.KvLabel1Click(Sender: TObject);
  80. begin
  81. ShellExecute(Application.Handle,nil,'http://zjfeng.yeah.net',nil,nil,SW_SHOWNORMAL);
  82. end;
  83. end.