home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / intmail2 / nntppst.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1999-07-20  |  869 b   |  45 lines

  1. unit nntppst;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls, ExtCtrls;
  8.  
  9. type
  10.   TArticleForm = class(TForm)
  11.     Panel1: TPanel;
  12.     BodyMemo: TMemo;
  13.     Label2: TLabel;
  14.     NewsGroupsEdit: TEdit;
  15.     Label3: TLabel;
  16.     SubjectEdit: TEdit;
  17.     Panel2: TPanel;
  18.     AttachButton: TButton;
  19.     PostButton: TButton;
  20.     CancelButton: TButton;
  21.     Label4: TLabel;
  22.     AttComboBox: TComboBox;
  23.     OpenDialog1: TOpenDialog;
  24.     procedure AttachButtonClick(Sender: TObject);
  25.   private
  26.     { Private declarations }
  27.   public
  28.     { Public declarations }
  29.   end;
  30.  
  31. var
  32.   ArticleForm: TArticleForm;
  33.  
  34. implementation
  35.  
  36. {$R *.DFM}
  37.  
  38. procedure TArticleForm.AttachButtonClick(Sender: TObject);
  39. begin
  40.   if OpenDialog1.Execute then
  41.     AttComboBox.Items.Add(OpenDialog1.FileName);
  42. end;
  43.  
  44. end.
  45.