2 Begin VB.Form EnterRoom
4 BackColor = &H00C0C0C0&
5 BorderStyle = 3 'Fixed Dialog
6 Caption = "Enter a new room..."
13 name = "MS Sans Serif"
19 strikethrough = 0 'False
21 ForeColor = &H80000008&
32 Begin VB.OptionButton NewRoomType
34 BackColor = &H00C0C0C0&
35 Caption = "Invitation-only (explicit invitation by Aide or Room Aide)"
36 ForeColor = &H80000008&
44 Begin VB.OptionButton NewRoomType
46 BackColor = &H00C0C0C0&
47 Caption = "Passworded (hidden plus password required for access)"
48 ForeColor = &H80000008&
56 Begin VB.OptionButton NewRoomType
58 BackColor = &H00C0C0C0&
59 Caption = "GuessName (hidden until user explicitly types room name)"
60 ForeColor = &H80000008&
68 Begin VB.OptionButton NewRoomType
70 BackColor = &H00C0C0C0&
71 Caption = "Public (all users can access this room by default)"
72 ForeColor = &H80000008&
80 Begin VB.TextBox NewRoomPass
83 BackColor = &H00C0C0C0&
86 name = "MS Sans Serif"
92 strikethrough = 0 'False
100 Begin Threed.SSFrame Frame3D3
110 Caption = "Room Password"
113 Begin Threed.SSFrame Frame3D2
123 Caption = "Type of room"
126 Begin Threed.SSFrame Frame3D1
136 Caption = "Name for new room"
138 Begin VB.TextBox NewRoomName
139 Alignment = 2 'Center
141 BackColor = &H00C0C0C0&
142 BorderStyle = 0 'None
144 name = "MS Sans Serif"
150 strikethrough = 0 'False
159 Begin VB.CommandButton cancel_button
161 BackColor = &H80000005&
169 Begin VB.CommandButton ok_button
171 BackColor = &H80000005&
172 Caption = "&OK (create)"
180 Attribute VB_Name = "EnterRoom"
181 Attribute VB_Creatable = False
182 Attribute VB_Exposed = False
184 Private Sub cancel_button_Click()
191 Private Sub Form_Load()
195 EnterRoom.WindowState = 0
196 EnterRoom.Top = Int((MainWin.Height - EnterRoom.Height) / 3)
197 EnterRoom.Left = Int((MainWin.Width - EnterRoom.Width) / 2)
199 NewRoomType(0).Value = True
200 NewRoomType(1).Value = False
201 NewRoomType(2).Value = False
202 NewRoomType(3).Value = False
203 NewRoomPass.Enabled = NewRoomType(2).Value
204 ok_button.Enabled = False
208 Private Sub NewRoomName_Change()
210 If Len(NewRoomName.Text) > 0 Then
211 ok_button.Enabled = True
213 ok_button.Enabled = False
218 Private Sub NewRoomType_Click(Index As Integer)
220 NewRoomPass.Enabled = NewRoomType(2).Value
224 Private Sub ok_button_Click()
228 If NewRoomType(c%).Value = True Then b% = c%
231 If begin_trans() = True Then
232 serv_puts ("CRE8 1|" + NewRoomName.Text + "|" + Str$(b%) + "|" + NewRoomPass.Text)
237 If Left$(a$, 1) <> "2" Then
238 MsgBox Right$(a$, Len(a$) - 4), 16, "Error"
240 CurrRoomName$ = NewRoomName.Text