home *** CD-ROM | disk | FTP | other *** search
/ Delphi 2.0 - Programmer's Utilities Power Pack / Delphi 2.0 Programmer's Utilities Power Pack.iso / m_to_r / mailx4 / inboxfor.fr_ / inboxfor.bin (.txt)
Encoding:
Visual Basic Form  |  1996-09-15  |  3.6 KB  |  127 lines

  1. VERSION 2.00
  2. Begin Form InboxForm 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Inbox Messages"
  6.    ClientHeight    =   3030
  7.    ClientLeft      =   1770
  8.    ClientTop       =   2595
  9.    ClientWidth     =   5970
  10.    Height          =   3405
  11.    Left            =   1725
  12.    LinkTopic       =   "Form4"
  13.    MDIChild        =   -1  'True
  14.    ScaleHeight     =   3030
  15.    ScaleWidth      =   5970
  16.    Top             =   2265
  17.    Width           =   6060
  18.    Begin CheckBox SortMsg 
  19.       BackColor       =   &H00C0C0C0&
  20.       Caption         =   "Sort Inbox Message"
  21.       Height          =   375
  22.       Left            =   165
  23.       TabIndex        =   5
  24.       Top             =   30
  25.       Width           =   2175
  26.    End
  27.    Begin CheckBox UnreadMsg 
  28.       BackColor       =   &H00C0C0C0&
  29.       Caption         =   "Unread Message Only"
  30.       Height          =   375
  31.       Left            =   2445
  32.       TabIndex        =   4
  33.       Top             =   30
  34.       Width           =   2295
  35.    End
  36.    Begin CommandButton FilterMsg 
  37.       Caption         =   "&Refresh List"
  38.       Height          =   390
  39.       Left            =   3720
  40.       TabIndex        =   3
  41.       Top             =   2505
  42.       Width           =   1815
  43.    End
  44.    Begin CommandButton OpenMsgBtn 
  45.       Caption         =   "&Open Message"
  46.       Height          =   405
  47.       Left            =   1995
  48.       TabIndex        =   2
  49.       Top             =   2490
  50.       Width           =   1695
  51.    End
  52.    Begin CommandButton HideWndBtn 
  53.       Caption         =   "&Hide List"
  54.       Height          =   405
  55.       Left            =   375
  56.       TabIndex        =   1
  57.       Top             =   2490
  58.       Width           =   1575
  59.    End
  60.    Begin ListBox MsgList 
  61.       Height          =   1785
  62.       Left            =   165
  63.       TabIndex        =   0
  64.       Top             =   510
  65.       Width           =   5700
  66.    End
  67.    Begin MMsg MMsg1 
  68.       BindString      =   "FormTag2.MSess1"
  69.       BodyAsFile      =   0   'False
  70.       DisplayErrors   =   0   'False
  71.       DisplaySendDialog=   0   'False
  72.       EnvelopeOnly    =   -1  'True
  73.       FetchMsgType    =   ""
  74.       Height          =   420
  75.       Left            =   5175
  76.       MarkAsRead      =   0   'False
  77.       SortMsg         =   0   'False
  78.       SuppressAttach  =   -1  'True
  79.       TimeFormat      =   "%I:%M:%S %p. %B %d, %Y "
  80.       Top             =   30
  81.       UnreadOnly      =   0   'False
  82.       Width           =   420
  83.       WorkingMsg      =   0  '0- Inbox Message
  84.    End
  85.    Begin MForm MForm1 
  86.       Height          =   300
  87.       Left            =   2880
  88.       MXFormName      =   "FormTag3"
  89.       Top             =   2280
  90.       Width           =   1455
  91.    End
  92. Sub FilterMsg_Click ()
  93.     MMsg1.UnreadOnly = UnreadMsg
  94.     MMsg1.SortMsg = SortMsg
  95.     RefreshList
  96. End Sub
  97. Sub Form_Load ()
  98.     RefreshList
  99. End Sub
  100. Sub HideWndBtn_Click ()
  101.     Unload Me
  102. End Sub
  103. Sub MsgList_DblClick ()
  104.     OpenMsgBtn_Click
  105. End Sub
  106. Sub OpenMsgBtn_Click ()
  107.     Index = MsgList.ListIndex
  108.     If Index = -1 Then
  109.         MsgBox "Select a Mail Message to be opened"
  110.     Else
  111.         MMsg1.FetchMsg = Index + 1
  112.         NewMsgWnd MMsg1
  113.     End If
  114. End Sub
  115. Sub RefreshList ()
  116.     SessionForm.MousePointer = 11
  117.     MsgList.Clear
  118.     MMsg1.Action = ACTION_FINDFIRST
  119.     Do
  120.         If MMsg1.FetchMsg <> 0 Then
  121.             MsgList.AddItem MMsg1.Subject
  122.             MMsg1.Action = ACTION_FINDNEXT
  123.         End If
  124.     Loop While MMsg1.FetchMsg <> 0
  125.     SessionForm.MousePointer = 1
  126. End Sub
  127.