-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathClient.dfm
More file actions
200 lines (199 loc) · 3.69 KB
/
Copy pathClient.dfm
File metadata and controls
200 lines (199 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
object Form1: TForm1
Left = 225
Top = 177
BorderStyle = bsSingle
Caption = 'Chat Client By: Mohammad Shams'
ClientHeight = 401
ClientWidth = 494
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 8
Top = 8
Width = 47
Height = 13
Caption = 'Server IP:'
end
object Label2: TLabel
Left = 128
Top = 8
Width = 56
Height = 13
Caption = 'Server Port:'
end
object Label3: TLabel
Left = 8
Top = 54
Width = 100
Height = 13
Caption = 'Received Messages:'
end
object Label4: TLabel
Left = 224
Top = 8
Width = 76
Height = 13
Caption = 'Your Nickname:'
end
object Label5: TLabel
Left = 351
Top = 54
Width = 64
Height = 13
Caption = 'List of clients:'
end
object Label6: TLabel
Left = 8
Top = 270
Width = 25
Height = 13
Caption = 'Help:'
end
object Memo1: TMemo
Left = 8
Top = 70
Width = 337
Height = 153
Color = clCream
ReadOnly = True
TabOrder = 0
OnDblClick = Memo1DblClick
end
object Edit1: TEdit
Left = 9
Top = 24
Width = 113
Height = 21
MaxLength = 15
TabOrder = 1
Text = '127.0.0.1'
end
object Edit2: TEdit
Left = 128
Top = 24
Width = 81
Height = 21
MaxLength = 5
TabOrder = 2
Text = '9999'
end
object Button1: TButton
Left = 351
Top = 8
Width = 66
Height = 37
Caption = 'Connect'
TabOrder = 3
OnClick = Button1Click
end
object Button2: TButton
Left = 417
Top = 8
Width = 66
Height = 37
Caption = 'Disconnect'
Enabled = False
TabOrder = 4
OnClick = Button2Click
end
object Edit3: TEdit
Left = 8
Top = 229
Width = 233
Height = 31
AutoSize = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
ParentFont = False
TabOrder = 5
Text = 'Type your message here ...'
end
object Button3: TButton
Left = 247
Top = 229
Width = 98
Height = 31
Caption = 'Send'
Enabled = False
TabOrder = 6
OnClick = Button3Click
end
object Edit4: TEdit
Left = 224
Top = 24
Width = 121
Height = 21
MaxLength = 15
TabOrder = 7
Text = 'Client1'
OnKeyPress = Edit4KeyPress
end
object ListBox1: TListBox
Left = 351
Top = 70
Width = 132
Height = 153
ItemHeight = 13
TabOrder = 8
end
object Button4: TButton
Left = 351
Top = 229
Width = 132
Height = 31
Caption = 'Get Clients List'
Enabled = False
TabOrder = 9
OnClick = Button4Click
end
object Memo2: TMemo
Left = 8
Top = 284
Width = 475
Height = 105
Color = 13434828
Lines.Strings = (
'Note:'
'1. Client must be connected, before any using.'
''
'Tips:'
'1. You can get clients list by pressing GetClientList buttom.'
'2. You can send message to every connected client, selecting his' +
' Nickname in right '
'list and press Send')
TabOrder = 10
end
object Button5: TButton
Left = 392
Top = 296
Width = 81
Height = 33
Caption = 'About'
TabOrder = 11
OnClick = Button5Click
end
object Tcp: TIdTCPClient
OnDisconnected = TcpDisconnected
ConnectTimeout = 0
IPVersion = Id_IPv4
OnConnected = TcpConnected
Port = 9999
ReadTimeout = 0
Left = 48
Top = 120
end
object IdAntiFreeze1: TIdAntiFreeze
Left = 96
Top = 120
end
end