home *** CD-ROM | disk | FTP | other *** search
/ Freelog 11 / Freelog011.iso / BestOf / PhoenixMail / Source / phoenix / FMStdMail.pas < prev    next >
Pascal/Delphi Source File  |  1999-02-05  |  2KB  |  76 lines

  1. {*****************************************************************************
  2.  *
  3.  *  FMStdMail.pas - Check for standard mail program  (17-September--1998)
  4.  *
  5.  *  Copyright (c) 1998-99 Michael Haller
  6.  *
  7.  *  Author:     Michael Haller
  8.  *  E-mail:     michael@discountdrive.com
  9.  *  Homepage:   http://www.discountdrive.com/sunrise
  10.  *
  11.  *  This program is free software; you can redistribute it and/or
  12.  *  modify it under the terms of the GNU General Public License
  13.  *  as published by the Free Software Foundation;
  14.  *
  15.  *  This program is distributed in the hope that it will be useful,
  16.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.  *  GNU General Public License for more details.
  19.  *
  20.  *  You should have received a copy of the GNU General Public License
  21.  *  along with this program; if not, write to the Free Software
  22.  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  23.  *
  24.  *----------------------------------------------------------------------------
  25.  *
  26.  *  Revision history:
  27.  *
  28.  *     DATE     REV                 DESCRIPTION
  29.  *  ----------- --- ----------------------------------------------------------
  30.  *
  31.  *****************************************************************************}
  32.  
  33. unit FMStdMail;
  34.  
  35. interface
  36.  
  37. uses
  38.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  39.   StdCtrls, LangSup, PXStuff, ExtCtrls;
  40.  
  41. type
  42.   TStdMailForm = class(TForm)
  43.     Button1: TButton;
  44.     Button2: TButton;
  45.     Label1: TLabel;
  46.     CheckBox1: TCheckBox;
  47.     Image1: TImage;
  48.     procedure FormClose(Sender: TObject; var Action: TCloseAction);
  49.     procedure FormCreate(Sender: TObject);
  50.   private
  51.     { Private declarations }
  52.   public
  53.     { Public declarations }
  54.   end;
  55.  
  56. var
  57.   StdMailForm: TStdMailForm;
  58.  
  59. implementation
  60.  
  61. {$R *.DFM}
  62.  
  63. procedure TStdMailForm.FormClose(Sender: TObject; var Action: TCloseAction);
  64. begin
  65.   bCheckForStdEMail := not CheckBox1.Checked;
  66. end;
  67.  
  68. procedure TStdMailForm.FormCreate(Sender: TObject);
  69. begin
  70.   AttachLanguageToForm(Self);
  71.   Image1.Picture.Icon.Assign(Application.Icon);
  72.   if bOfficeFonts then Font.Name := sOfficeFontName;
  73. end;
  74.  
  75. end.
  76.