unit Client; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Psock, NMMSG, Buttons, ExtCtrls; type TForm1 = class(TForm) client: TNMMsg; Button1: TButton; Edit2: TEdit; Label1: TLabel; Label2: TLabel; Memo1: TMemo; Panel1: TPanel; BitBtn1: TBitBtn; ScrollBar1: TScrollBar; Close: TBitBtn; GroupBox1: TGroupBox; BitBtn2: TBitBtn; BitBtn3: TBitBtn; procedure Button1Click(Sender: TObject); procedure BitBtn1Click(Sender: TObject); procedure BitBtn2Click(Sender: TObject); procedure BitBtn3Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.DFM} procedure TForm1.Button1Click(Sender: TObject); begin client.FromName := 'msg'; client.host := edit2.text; client.PostIt(memo1.text); end; procedure TForm1.BitBtn1Click(Sender: TObject); begin client.FromName := 'disp'; client.host := edit2.text; client.PostIt(IntTostr(Scrollbar1.Position)); end; procedure TForm1.BitBtn2Click(Sender: TObject); begin client.FromName := 'monitor'; client.host := edit2.text; client.PostIt('1'); end; procedure TForm1.BitBtn3Click(Sender: TObject); begin client.FromName := 'monitor'; client.host := edit2.text; client.PostIt('0'); end; end.