home *** CD-ROM | disk | FTP | other *** search
/ On Hand / On_Hand_From_Softbank_1994_Release_2_Disc_2_1994.iso / 00202 / s / disk3 / msgview.fr_ / msgview.bin
Text File  |  1993-04-28  |  11KB  |  352 lines

  1. VERSION 2.00
  2. Begin Form MsgView 
  3.    Caption         =   "Mail Message"
  4.    ClientHeight    =   4380
  5.    ClientLeft      =   2475
  6.    ClientTop       =   2340
  7.    ClientWidth     =   6210
  8.    Height          =   4785
  9.    Icon            =   MSGVIEW.FRX:0000
  10.    Left            =   2415
  11.    LinkTopic       =   "Form2"
  12.    MDIChild        =   -1  'True
  13.    ScaleHeight     =   4380
  14.    ScaleWidth      =   6210
  15.    Top             =   1995
  16.    Width           =   6330
  17.    Begin PictureBox AttachWin 
  18.       Align           =   2  'Align Bottom
  19.       BackColor       =   &H00C0C0C0&
  20.       Height          =   825
  21.       Left            =   0
  22.       ScaleHeight     =   795
  23.       ScaleWidth      =   6180
  24.       TabIndex        =   12
  25.       Top             =   3555
  26.       Visible         =   0   'False
  27.       Width           =   6210
  28.       Begin ListBox aList 
  29.          FontBold        =   0   'False
  30.          FontItalic      =   0   'False
  31.          FontName        =   "MS Sans Serif"
  32.          FontSize        =   8.25
  33.          FontStrikethru  =   0   'False
  34.          FontUnderline   =   0   'False
  35.          Height          =   420
  36.          Left            =   240
  37.          TabIndex        =   14
  38.          Top             =   300
  39.          Width           =   5835
  40.       End
  41.       Begin Label NumAtt 
  42.          AutoSize        =   -1  'True
  43.          BackStyle       =   0  'Transparent
  44.          FontBold        =   0   'False
  45.          FontItalic      =   0   'False
  46.          FontName        =   "MS Sans Serif"
  47.          FontSize        =   8.25
  48.          FontStrikethru  =   0   'False
  49.          FontUnderline   =   0   'False
  50.          Height          =   195
  51.          Left            =   1200
  52.          TabIndex        =   15
  53.          Top             =   60
  54.          Width           =   45
  55.       End
  56.       Begin Label Label6 
  57.          AutoSize        =   -1  'True
  58.          BackStyle       =   0  'Transparent
  59.          Caption         =   "Attachments:"
  60.          FontBold        =   0   'False
  61.          FontItalic      =   0   'False
  62.          FontName        =   "MS Sans Serif"
  63.          FontSize        =   8.25
  64.          FontStrikethru  =   0   'False
  65.          FontUnderline   =   0   'False
  66.          Height          =   195
  67.          Left            =   60
  68.          TabIndex        =   13
  69.          Top             =   60
  70.          Width           =   930
  71.       End
  72.    End
  73.    Begin TextBox txtNoteText 
  74.       FontBold        =   0   'False
  75.       FontItalic      =   0   'False
  76.       FontName        =   "MS Sans Serif"
  77.       FontSize        =   8.25
  78.       FontStrikethru  =   0   'False
  79.       FontUnderline   =   0   'False
  80.       Height          =   1815
  81.       Left            =   0
  82.       MultiLine       =   -1  'True
  83.       ScrollBars      =   2  'Vertical
  84.       TabIndex        =   0
  85.       Top             =   1740
  86.       Width           =   6195
  87.    End
  88.    Begin PictureBox Picture1 
  89.       Align           =   1  'Align Top
  90.       BackColor       =   &H00C0C0C0&
  91.       Height          =   1755
  92.       Left            =   0
  93.       ScaleHeight     =   1725
  94.       ScaleWidth      =   6180
  95.       TabIndex        =   6
  96.       Top             =   0
  97.       Width           =   6210
  98.       Begin TextBox txtsubject 
  99.          BackColor       =   &H00C0C0C0&
  100.          BorderStyle     =   0  'None
  101.          FontBold        =   0   'False
  102.          FontItalic      =   0   'False
  103.          FontName        =   "MS Sans Serif"
  104.          FontSize        =   8.25
  105.          FontStrikethru  =   0   'False
  106.          FontUnderline   =   0   'False
  107.          Height          =   225
  108.          Left            =   900
  109.          TabIndex        =   5
  110.          Top             =   1320
  111.          Width           =   4995
  112.       End
  113.       Begin TextBox txtcc 
  114.          BackColor       =   &H00C0C0C0&
  115.          BorderStyle     =   0  'None
  116.          FontBold        =   0   'False
  117.          FontItalic      =   0   'False
  118.          FontName        =   "MS Sans Serif"
  119.          FontSize        =   8.25
  120.          FontStrikethru  =   0   'False
  121.          FontUnderline   =   0   'False
  122.          Height          =   225
  123.          Left            =   900
  124.          TabIndex        =   4
  125.          Top             =   1020
  126.          Width           =   4995
  127.       End
  128.       Begin TextBox txtTo 
  129.          BackColor       =   &H00C0C0C0&
  130.          BorderStyle     =   0  'None
  131.          FontBold        =   0   'False
  132.          FontItalic      =   0   'False
  133.          FontName        =   "MS Sans Serif"
  134.          FontSize        =   8.25
  135.          FontStrikethru  =   0   'False
  136.          FontUnderline   =   0   'False
  137.          Height          =   225
  138.          Left            =   900
  139.          TabIndex        =   3
  140.          Top             =   720
  141.          Width           =   4995
  142.       End
  143.       Begin TextBox txtDate 
  144.          BackColor       =   &H00C0C0C0&
  145.          BorderStyle     =   0  'None
  146.          FontBold        =   0   'False
  147.          FontItalic      =   0   'False
  148.          FontName        =   "MS Sans Serif"
  149.          FontSize        =   8.25
  150.          FontStrikethru  =   0   'False
  151.          FontUnderline   =   0   'False
  152.          Height          =   225
  153.          Left            =   900
  154.          TabIndex        =   2
  155.          Top             =   420
  156.          Width           =   4995
  157.       End
  158.       Begin TextBox txtFrom 
  159.          BackColor       =   &H00C0C0C0&
  160.          BorderStyle     =   0  'None
  161.          FontBold        =   0   'False
  162.          FontItalic      =   0   'False
  163.          FontName        =   "MS Sans Serif"
  164.          FontSize        =   8.25
  165.          FontStrikethru  =   0   'False
  166.          FontUnderline   =   0   'False
  167.          Height          =   225
  168.          Left            =   900
  169.          TabIndex        =   1
  170.          Top             =   120
  171.          Width           =   4995
  172.       End
  173.       Begin Label Label5 
  174.          AutoSize        =   -1  'True
  175.          BackStyle       =   0  'Transparent
  176.          Caption         =   "Subject:"
  177.          Height          =   195
  178.          Left            =   120
  179.          TabIndex        =   11
  180.          Top             =   1320
  181.          Width           =   720
  182.       End
  183.       Begin Label Label4 
  184.          AutoSize        =   -1  'True
  185.          BackStyle       =   0  'Transparent
  186.          Caption         =   "Cc:"
  187.          Height          =   195
  188.          Left            =   120
  189.          TabIndex        =   10
  190.          Top             =   1020
  191.          Width           =   300
  192.       End
  193.       Begin Label Label3 
  194.          AutoSize        =   -1  'True
  195.          BackStyle       =   0  'Transparent
  196.          Caption         =   "To:"
  197.          Height          =   195
  198.          Left            =   120
  199.          TabIndex        =   9
  200.          Top             =   720
  201.          Width           =   300
  202.       End
  203.       Begin Label Label2 
  204.          AutoSize        =   -1  'True
  205.          BackStyle       =   0  'Transparent
  206.          Caption         =   "Date:"
  207.          Height          =   195
  208.          Left            =   120
  209.          TabIndex        =   8
  210.          Top             =   420
  211.          Width           =   480
  212.       End
  213.       Begin Label Label1 
  214.          AutoSize        =   -1  'True
  215.          BackStyle       =   0  'Transparent
  216.          Caption         =   "From:"
  217.          Height          =   195
  218.          Left            =   120
  219.          TabIndex        =   7
  220.          Top             =   120
  221.          Width           =   480
  222.       End
  223.       Begin Line RightLine 
  224.          BorderColor     =   &H00FFFFFF&
  225.          X1              =   6000
  226.          X2              =   6000
  227.          Y1              =   60
  228.          Y2              =   1620
  229.       End
  230.       Begin Line BottomLine 
  231.          BorderColor     =   &H00FFFFFF&
  232.          X1              =   60
  233.          X2              =   6000
  234.          Y1              =   1620
  235.          Y2              =   1620
  236.       End
  237.       Begin Line TopLine 
  238.          BorderColor     =   &H00808080&
  239.          X1              =   60
  240.          X2              =   5940
  241.          Y1              =   60
  242.          Y2              =   60
  243.       End
  244.       Begin Line LeftLine 
  245.          BorderColor     =   &H00808080&
  246.          X1              =   60
  247.          X2              =   60
  248.          Y1              =   60
  249.          Y2              =   1620
  250.       End
  251.    End
  252. End
  253. Sub aList_DblClick ()
  254.     '---- ListIndex is the index into the attachment list
  255.     VBMail.MapiMess.AttachmentIndex = aList.ListIndex
  256.     If VBMail.MapiMess.AttachmentType = MAPI_ATT_File Then
  257.         Call DisplayAttachedFile(VBMail.MapiMess.AttachmentPathName)
  258.     Else
  259.         MsgBox "Sample Application doesn't view OLE type Attachments"
  260.     End If
  261. End Sub
  262.  
  263. Sub AttachWin_Resize ()
  264. '---------------------------------------------------
  265. '  Update the widths of the fields and adjust the line
  266. '  controls as needed.
  267. '---------------------------------------------------
  268.     aList.Width = AttachWin.Width - aList.Left - 315
  269. End Sub
  270.  
  271. Sub Form_Activate ()
  272. '-----------------------------------------------------
  273. '   When the form is actived, update the mailLst.Mlist
  274. '   to reflect the current item (TAG property contains
  275. '   the index of the message currently viewed)
  276. '-----------------------------------------------------
  277.     MailLst.MList.ListIndex = Val(Me.Tag)
  278.     MailLst.MList.ItemData(Val(Me.Tag)) = True
  279.     VBMail.MapiMess.MsgIndex = Val(Me.Tag)
  280. End Sub
  281.  
  282. Sub Form_Load ()
  283. '--- Ensure all resizing is done on startup
  284.     Call Picture1_Resize
  285.     Call AttachWin_Resize
  286.     Call Form_Resize
  287. End Sub
  288.  
  289. Sub Form_Resize ()
  290. '--- Adjust the window size if we aren't minimized
  291.     Call SizeMessageWindow(Me)
  292. End Sub
  293.  
  294. Sub Form_Unload (Cancel As Integer)
  295. '--------------------------------------------------------
  296. 'Tag will get set to -1 after the currenly viewed message
  297. 'is deleted
  298. '--------------------------------------------------------
  299.     If Val(Me.Tag) > 0 Then
  300.         MailLst.MList.ItemData(Val(Me.Tag)) = False
  301.     End If
  302. End Sub
  303.  
  304. Sub Picture1_Resize ()
  305. '---------------------------------------------------
  306. '  Update the widths of the fields and adjust the line
  307. '  controls as needed.
  308. '---------------------------------------------------
  309.     TopLine.X2 = picture1.Width - 90
  310.     BottomLine.X2 = picture1.Width - 90
  311.     RightLine.X1 = picture1.Width - 90
  312.     RightLine.X2 = picture1.Width - 90
  313.     lf% = TxtTo.Left
  314.     TxtTo.Width = picture1.Width - 120 - lf%
  315.     txtDate.Width = picture1.Width - 120 - lf%
  316.     txtCC.Width = picture1.Width - 120 - lf%
  317.     txtSubject.Width = picture1.Width - 120 - lf%
  318.     txtFrom.Width = picture1.Width - 120 - lf%
  319.     picture1.Refresh
  320. End Sub
  321.  
  322. Sub txtcc_KeyPress (KeyAscii As Integer)
  323. '--- Ignore All Keypresses
  324.     KeyAscii = 0
  325. End Sub
  326.  
  327. Sub txtDate_KeyPress (KeyAscii As Integer)
  328. '--- Ignore All Keypresses
  329.     KeyAscii = 0
  330. End Sub
  331.  
  332. Sub txtFrom_KeyPress (KeyAscii As Integer)
  333. '--- Ignore All Keypresses
  334.     KeyAscii = 0
  335. End Sub
  336.  
  337. Sub txtNoteText_KeyPress (KeyAscii As Integer)
  338. '--- Ignore all keypresses
  339.     KeyAscii = 0
  340. End Sub
  341.  
  342. Sub txtsubject_KeyPress (KeyAscii As Integer)
  343. '--- Ignore all keypresses
  344.      KeyAscii = 0
  345. End Sub
  346.  
  347. Sub txtTo_KeyPress (KeyAscii As Integer)
  348. '--- Ignore all keypresses
  349.     KeyAscii = 0
  350. End Sub
  351.  
  352.