Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.8 KiB

  1. VERSION 5.00
  2. Begin VB.Form NewFaxDialog
  3. Caption = "New Fax Document"
  4. ClientHeight = 2520
  5. ClientLeft = 6300
  6. ClientTop = 5355
  7. ClientWidth = 6045
  8. LinkTopic = "Form1"
  9. ScaleHeight = 2520
  10. ScaleWidth = 6045
  11. Begin VB.CommandButton Cancel
  12. Caption = "Cancel"
  13. Height = 495
  14. Left = 2880
  15. TabIndex = 3
  16. Top = 1320
  17. Width = 1455
  18. End
  19. Begin VB.CommandButton OK
  20. Caption = "OK"
  21. Height = 495
  22. Left = 600
  23. TabIndex = 2
  24. Top = 1320
  25. Width = 1455
  26. End
  27. Begin VB.TextBox FileName
  28. Height = 375
  29. Left = 2160
  30. TabIndex = 0
  31. Top = 360
  32. Width = 3615
  33. End
  34. Begin VB.Label Label1
  35. Caption = "Enter a Document Name:"
  36. Height = 375
  37. Left = 120
  38. TabIndex = 1
  39. Top = 360
  40. Width = 2055
  41. End
  42. End
  43. Attribute VB_Name = "NewFaxDialog"
  44. Attribute VB_GlobalNameSpace = False
  45. Attribute VB_Creatable = False
  46. Attribute VB_PredeclaredId = True
  47. Attribute VB_Exposed = False
  48. Private Sub Cancel_Click()
  49. Unload NewFaxDialog
  50. End Sub
  51. Private Sub OK_Click()
  52. If FileName.Text = "" Then
  53. msg = "You must specify a document name"
  54. MsgBox msg, , "Error"
  55. FileName.SetFocus
  56. Exit Sub
  57. End If
  58. Err.Clear
  59. Set FaxDocument = Fax.CreateDocument(FileName.Text)
  60. If Err.Number <> 0 Then
  61. msg = "Could not create new document"
  62. MsgBox msg, , "Error"
  63. Unload NewFaxDialog
  64. Doc = False
  65. Else
  66. Unload NewFaxDialog
  67. Doc = True
  68. End If
  69. End Sub