About.pas
上传用户:dh8233980
上传日期:2014-10-16
资源大小:1015k
文件大小:3k
源码类别:

Email服务器

开发平台:

Delphi

  1. unit About;
  2. (******************************************************************************)
  3. (*                                                                            *)
  4. (* Hermes About Dialog Window                                                 *)
  5. (* Part of Hermes SMTP/POP3 Server.                                           *)
  6. (* Copyright(C) 2000 by Alexander J. Fanti, All Rights Reserver Worldwide.    *)
  7. (*                                                                            *)
  8. (* Created January 19, 2000 by Alexander J. Fanti.  See License.txt           *)
  9. (*                                                                            *)
  10. (* Used by: Main                                                              *)
  11. (* Uses: License                                                              *)
  12. (*                                                                            *)
  13. (* Description: This is an about dialog window to display program name and    *)
  14. (*              version information.  It also displays the copyright and      *)
  15. (*              links to the program web site, the Borland web site, and the  *)
  16. (*              license dialog                                                *)
  17. (*                                                                            *)
  18. (* Revisions: 1/21/2000  AJF  Commented                                       *)
  19. (*                                                                            *)
  20. (******************************************************************************)
  21. interface
  22. uses
  23.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  24.   StdCtrls, Buttons, WSocket, Spin, ExtCtrls,
  25.   SmtpAgent, MailRouting;
  26. type
  27.   TfrmAbout = class(TForm)
  28.     Label1: TLabel;
  29.     lblVersion: TLabel;
  30.     lblCopyright: TLabel;
  31.     lblWebSite: TLabel;
  32.     Label2: TLabel;
  33.     lblLicense: TLabel;
  34.     imgBorland: TImage;
  35.     imgHermes: TImage;
  36.     imgAuthor: TImage;
  37.     Memo1: TMemo;
  38.     Label3: TLabel;
  39.     lblMailTo: TLabel;
  40.     procedure lblLicenseClick(Sender: TObject);
  41.     procedure lblWebSiteClick(Sender: TObject);
  42.     procedure imgBorlandClick(Sender: TObject);
  43.     procedure FormShow(Sender: TObject);
  44.     procedure lblMailToClick(Sender: TObject);
  45.   private
  46.     { Private declarations }
  47.   public
  48.     { Public declarations }
  49.   end;
  50. var
  51.   frmAbout: TfrmAbout;
  52. implementation
  53. uses License, DataU1, UtilU1;
  54. {$R *.DFM}
  55. procedure TfrmAbout.FormShow(Sender: TObject);
  56. begin
  57.   lblVersion.Caption := 'Version: ' + AppVersion;
  58.   lblWebSite.Caption := AppWebSite;
  59. end;
  60. procedure TfrmAbout.lblLicenseClick(Sender: TObject);
  61. begin
  62.   // Display the License in a window...
  63.   frmLicense.ShowModal;
  64. end;
  65. procedure TfrmAbout.lblWebSiteClick(Sender: TObject);
  66. begin
  67.   // Open the user's web browser to the program URL 
  68.   if not LaunchShellApp(AppWebSite) then
  69.     ShowMessage('Can''t open web browser to ' + AppWebSite);
  70. end;
  71. procedure TfrmAbout.lblMailToClick(Sender: TObject);
  72. begin
  73.   // Open the user's mailer to the Author's EMail Address
  74.   if not LaunchShellApp(AuthorEMail) then
  75.     ShowMessage('Can''t open EMailer to ' + AuthorEMail);
  76. end;
  77. procedure TfrmAbout.imgBorlandClick(Sender: TObject);
  78. begin
  79.   // Open the user's web browser to the borland web site
  80.   if not LaunchShellApp('http://www.borland.com') then
  81.     ShowMessage('Can''t open web browser to http://www.borland.com');
  82. end;
  83. end.