2 Begin VB.Form ReadMessages
16 strikethrough = 0 'False
18 ForeColor = &H80000008&
27 ShowInTaskbar = 0 'False
30 Begin VB.CommandButton print_button
32 BackColor = &H80000005&
35 name = "MS Sans Serif"
41 strikethrough = 0 'False
49 Begin VB.CommandButton quote_button
51 BackColor = &H80000005&
54 name = "MS Sans Serif"
60 strikethrough = 0 'False
68 Begin VB.CommandButton Move_Button
70 BackColor = &H80000005&
74 name = "MS Sans Serif"
80 strikethrough = 0 'False
88 Begin VB.CommandButton Delete_Button
90 BackColor = &H80000005&
94 name = "MS Sans Serif"
100 strikethrough = 0 'False
108 Begin Threed.SSPanel msg_num
119 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
120 name = "MS Sans Serif"
126 strikethrough = 0 'False
132 Begin Threed.SSPanel message_panel
143 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
144 name = "MS Sans Serif"
150 strikethrough = 0 'False
155 Begin VB.TextBox message_text
157 BackColor = &H00C0C0C0&
158 BorderStyle = 0 'None
166 strikethrough = 0 'False
172 ScrollBars = 2 'Vertical
178 Begin VB.CommandButton first_button
180 BackColor = &H80000005&
181 Caption = "<<- &First"
183 name = "MS Sans Serif"
189 strikethrough = 0 'False
197 Begin VB.CommandButton last_button
199 BackColor = &H80000005&
200 Caption = "&Last ->>"
202 name = "MS Sans Serif"
208 strikethrough = 0 'False
216 Begin Threed.SSPanel room_panel
227 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
228 name = "MS Sans Serif"
234 strikethrough = 0 'False
240 Begin Threed.SSPanel date_panel
251 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
252 name = "MS Sans Serif"
258 strikethrough = 0 'False
264 Begin Threed.SSPanel to_panel
275 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
276 name = "MS Sans Serif"
282 strikethrough = 0 'False
288 Begin VB.CommandButton back_button
290 BackColor = &H80000005&
293 name = "MS Sans Serif"
299 strikethrough = 0 'False
307 Begin VB.CommandButton next_button
309 BackColor = &H80000005&
312 name = "MS Sans Serif"
318 strikethrough = 0 'False
326 Begin VB.CommandButton stop_button
328 BackColor = &H80000005&
331 name = "MS Sans Serif"
337 strikethrough = 0 'False
345 Begin Threed.SSPanel from_panel
356 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
357 name = "MS Sans Serif"
363 strikethrough = 0 'False
369 Begin VB.Label Label5
370 Alignment = 1 'Right Justify
372 BackColor = &H80000005&
373 BackStyle = 0 'Transparent
376 name = "MS Sans Serif"
382 strikethrough = 0 'False
384 ForeColor = &H80000008&
391 Begin VB.Label Label4
392 Alignment = 1 'Right Justify
394 BackColor = &H80000005&
395 BackStyle = 0 'Transparent
398 name = "MS Sans Serif"
404 strikethrough = 0 'False
406 ForeColor = &H80000008&
413 Begin VB.Label Label3
414 Alignment = 1 'Right Justify
416 BackColor = &H80000005&
417 BackStyle = 0 'Transparent
420 name = "MS Sans Serif"
426 strikethrough = 0 'False
428 ForeColor = &H80000008&
435 Begin VB.Label Label2
436 Alignment = 1 'Right Justify
438 BackColor = &H80000005&
439 BackStyle = 0 'Transparent
442 name = "MS Sans Serif"
448 strikethrough = 0 'False
450 ForeColor = &H80000008&
458 Attribute VB_Name = "ReadMessages"
459 Attribute VB_Creatable = False
460 Attribute VB_Exposed = False
466 Private Sub back_button_Click()
468 curr_msg% = curr_msg% - 1
473 Private Sub check_quote_button()
474 If message_text.SelLength > 0 Then
475 Quote_Button.Enabled = True
477 Quote_Button.Enabled = False
481 Private Sub Delete_Button_Click()
482 If begin_trans() = False Then GoTo skipdelete
483 serv_puts ("DELE " + Str$(msg_array&(curr_msg%)))
487 If (Left$(a$, 1) = "2") Then
488 For b% = curr_msg% To max_msgs% - 2
489 msg_array&(b%) = msg_array(b% + 1)
491 max_msgs% = max_msgs% - 1
492 If max_msgs% = 0 Then Unload ReadMessages
493 If curr_msg% >= (max_msgs% - 1) Then curr_msg% = curr_msg% - 1
496 MsgBox Right$(a$, Len(a$) - 4), 16, "Error"
502 Private Sub display_msg()
504 If curr_msg% = 0 Then
505 back_button.Enabled = False
506 first_button.Enabled = False
508 back_button.Enabled = True
509 first_button.Enabled = True
512 If curr_msg% = (max_msgs% - 1) Then
513 next_button.Enabled = False
514 last_button.Enabled = False
516 next_button.Enabled = True
517 last_button.Enabled = True
520 msg_num.Caption = Str$(curr_msg% + 1) + " of " + Str$(max_msgs%)
521 If begin_trans() = False Then GoTo skipitall
522 LastMessageRead& = msg_array&(curr_msg%)
523 serv_puts ("MSG0 " + Str$(msg_array&(curr_msg%)))
530 from_panel.Caption = ""
531 to_panel.Caption = ""
532 room_panel.Caption = ""
533 date_panel.Caption = ""
535 If Left$(a$, 1) = "1" Then
536 message_text.Text = a$
539 If a$ = "000" Then Exit Do
541 If Left$(a$, 5) = "from=" Then from_panel.Caption = Right$(a$, Len(a$) - 5)
542 If Left$(a$, 5) = "rcpt=" Then to_panel.Caption = Right$(a$, Len(a$) - 5)
543 If Left$(a$, 5) = "room=" Then room_panel.Caption = Right$(a$, Len(a$) - 5)
544 If Left$(a$, 5) = "time=" Then date_panel.Caption = strtime(Val(Right$(a$, Len(a$) - 5)))
545 If Left$(a$, 5) = "type=" Then format_type% = Val(Right$(a$, Len(a$) - 5))
546 If Left$(a$, 5) = "node=" Then source_node$ = Right$(a$, Len(a$) - 5)
547 If Left$(a$, 5) = "hnod=" Then source_hnode$ = Right$(a$, Len(a$) - 5)
548 If Left$(a$, 4) = "text" Then
550 If format_type% = 1 Then
551 message_text.FontName = fixedfontname
552 message_text.FontSize = Int(message_text.Width / 1000)
553 message_text.FontBold = False
554 message_text.FontItalic = False
556 message_text.FontName = varifontname
557 message_text.FontSize = varifontsize
558 message_text.FontBold = False
559 message_text.FontItalic = False
563 b$ = b$ + a$ + Chr$(13) + Chr$(10)
567 If format_type% = 0 Then
568 message_text.Text = Cit_Format(b$)
570 message_text.Text = b$
572 If source_node$ <> "" Then from_panel.Caption = from_panel.Caption + " @ " + source_node$
573 If source_hnode$ <> "" Then from_panel.Caption = from_panel.Caption + " (" + source_hnode$ + ")"
575 message_text.Text = a$
580 Call message_text_Click
584 Private Sub first_button_Click()
589 Private Sub Form_Load()
591 varifontname = GetPrivateProfileVBString("Preferences", "VariFontName", "MS Sans Serif", "WINCIT.INI")
592 varifontsize = GetPrivateProfileInt("Preferences", "VariFontSize", 10, "WINCIT.INI")
594 fixedfontname = GetPrivateProfileVBString("Preferences", "FixedFontName", "Courier New", "WINCIT.INI")
598 move_button.Enabled = IsRoomAide%
599 delete_button.Enabled = IsRoomAide%
607 Private Sub Form_Resize()
609 ReadMessages.Left = 0
611 ReadMessages.Width = MainWin.Width
612 ReadMessages.Height = MainWin.Height - 400
614 stop_button.Top = Abs(ReadMessages.Height - 520)
615 last_button.Top = Abs(ReadMessages.Height - 520)
616 next_button.Top = Abs(ReadMessages.Height - 520)
617 back_button.Top = Abs(ReadMessages.Height - 520)
618 first_button.Top = Abs(ReadMessages.Height - 520)
619 move_button.Top = Abs(ReadMessages.Height - 520)
620 delete_button.Top = Abs(ReadMessages.Height - 520)
621 Quote_Button.Top = Abs(ReadMessages.Height - 520)
622 print_button.Top = Abs(ReadMessages.Height - 520)
623 msg_num.Top = Abs(ReadMessages.Height - 520)
624 message_text.Width = Abs(ReadMessages.Width - 336)
625 message_text.Height = Abs(ReadMessages.Height - 1664)
626 message_panel.Height = Abs(ReadMessages.Height - 1424)
627 message_panel.Width = Abs(ReadMessages.Width - 100)
630 Private Sub last_button_Click()
631 curr_msg% = max_msgs% - 1
635 Private Sub message_text_Change()
636 Call check_quote_button
639 Private Sub message_text_Click()
640 Call check_quote_button
643 Private Sub next_button_Click()
645 curr_msg% = curr_msg% + 1
650 Private Sub print_button_Click()
652 a$ = message_text.Text
653 message_text.Text = quotify(a$)
659 Private Sub quote_button_Click()
661 a$ = message_text.SelText
662 Clipboard.SetText quotify(a$)
666 Private Function quotify(instring As String) As String
674 If Len(a$) = 0 Then GoTo CHKEND
677 b$ = b$ + " >" + a$ + Chr$(13) + Chr$(10)
681 c = InStr(a$, Chr$(13) + Chr$(10))
682 If (c < 72) And (c <> 0) Then
683 b$ = b$ + " >" + Left$(a$, c - 1) + Chr$(13) + Chr$(10)
684 a$ = Right$(a$, (Len(a$) - c) - 1)
688 If (c > 72) Or (c = 0) Then
689 b$ = b$ + " >" + Left$(a$, 72) + Chr$(13) + Chr$(10)
690 If Len(a$) > 0 Then a$ = Right$(a$, Len(a$) - 72)
697 e = InStr(c, a$, " ")
703 Loop Until e = 0 Or c >= 72
707 b$ = b$ + " >" + Left$(a$, d) + Chr$(13) + Chr$(10)
708 a$ = Right$(a$, (Len(a$) - d) + 1)
712 Loop Until Len(a$) = 0
718 Private Sub stop_button_Click()