unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ScktComp, StdCtrls, ComCtrls, StrUtils, superobject, ExtCtrls;
const
MY_PORT = 30000;
// an diesem Port wartet der Server auf Clients
type
TForm1 =
class(TForm)
ServerAdress: TEdit;
Online: TCheckBox;
Input: TEdit;
BtnSend: TButton;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
log: TRichEdit;
lstUsers: TListBox;
edtOwnUserNick: TEdit;
Shape1: TShape;
Shape2: TShape;
Shape3: TShape;
combContentSize: TComboBox;
combContentColor: TComboBox;
combContentStyle: TComboBox;
ClientSocket: TClientSocket;
procedure FormCreate(Sender: TObject);
procedure OnlineClick(Sender: TObject);
procedure BtnSendClick(Sender: TObject);
procedure ClientSocketRead(Sender: TObject; Socket: TCustomWinSocket);
procedure FormDestroy(Sender: TObject);
procedure InputKeyPress(Sender: TObject;
var Key: Char);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
uses Unit3;
var
DataModule: Unit3.TDataModule3;