2 Begin VB.Form EnterConfiguration
4 BackColor = &H00C0C0C0&
5 BorderStyle = 3 'Fixed Dialog
6 Caption = "Account Configuration"
11 ClipControls = 0 'False
14 name = "MS Sans Serif"
20 strikethrough = 0 'False
22 ForeColor = &H80000008&
33 Begin VB.CheckBox Unlisted
35 BackColor = &H00C0C0C0&
36 Caption = "Be unlisted in the userlog"
38 name = "MS Sans Serif"
44 strikethrough = 0 'False
46 ForeColor = &H80000008&
53 Begin VB.CheckBox LastOld
55 BackColor = &H00C0C0C0&
56 Caption = "Display last old message when reading new messages"
58 name = "MS Sans Serif"
64 strikethrough = 0 'False
66 ForeColor = &H80000008&
73 Begin VB.CommandButton cancel_button
75 BackColor = &H80000005&
83 Begin VB.CommandButton save_button
85 BackColor = &H80000005&
94 Attribute VB_Name = "EnterConfiguration"
95 Attribute VB_Creatable = False
96 Attribute VB_Exposed = False
97 ' ScreenWidth and ScreenHeight don't get used in WinCit.
98 ' We read them in when we do a GETU only so we can save
99 ' them back when we save with SETU. This way, if the
100 ' user is also using the same server with the text client,
101 ' his/her screen dimensions won't get frotzed.
105 ' Here's what we're really interested in.
108 Private Sub cancel_button_Click()
109 Unload EnterConfiguration
113 Private Sub Form_Load()
115 EnterConfiguration.WindowState = 0
116 EnterConfiguration.Top = Int((MainWin.Height - EnterConfiguration.Height) / 3)
117 EnterConfiguration.Left = Int((MainWin.Width - EnterConfiguration.Width) / 2)
122 If begin_trans() = True Then
128 If Left$(a$, 1) = "2" Then
129 b$ = Right$(a$, Len(a$) - 4)
130 ScreenWidth% = Val(extract$(b$, 0))
131 ScreenHeight% = Val(extract$(b$, 1))
132 UserFlags% = Val(extract$(b$, 2))
134 save_button_enabled = False
135 MsgBox Right$(a$, Len(a$) - 4), 16
138 If (UserFlags% And 16) Then
144 If (UserFlags% And 64) Then
152 Private Sub save_button_Click()
154 UserFlags% = UserFlags% Or 16 Or 64
156 If LastOld.Value = 0 Then UserFlags% = UserFlags% - 16
157 If Unlisted.Value = 0 Then UserFlags% = UserFlags% - 64
159 a$ = "SETU " + Str$(ScreenWidth%) + "|" + Str$(ScreenHeight%) + "|" + Str$(UserFlags%)
161 If begin_trans() = True Then
165 If Left$(a$, 1) <> "2" Then
166 MsgBox Right$(a$, Len(a$) - 4), 16
169 Unload EnterConfiguration