home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / mail / mailx6 / _setup.1 / MAILSYS.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1996-03-08  |  738 b   |  36 lines

  1. unit MailSys;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, ExtCtrls, Simplevb, MXMAILX;
  8. {$I mailxdef.int}
  9.  
  10. type
  11.   TMailSystem = class(TForm)
  12.     RadioGroup1: TRadioGroup;
  13.     Button1: TButton;
  14.     procedure Button1Click(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20.  
  21.  
  22. implementation
  23.  
  24. {$R *.DFM}
  25.  
  26. procedure TMailSystem.Button1Click(Sender: TObject);
  27. begin
  28.      case RadioGroup1.ItemIndex of
  29.           0: SimpleForm.MXSession1.MailType:=mtEXCHANGE;
  30.           1: SimpleForm.MXSession1.MailType:=mtVIM;
  31.           2: SimpleForm.MXSession1.MailType:=mtPOP3SMTP;
  32.      end;
  33. end;
  34.  
  35. end.
  36.