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.

125 lines
3.5 KiB

  1. VERSION 5.00
  2. Begin VB.Form FindForm
  3. BorderStyle = 3 'Fixed Dialog
  4. Caption = "Find"
  5. ClientHeight = 2235
  6. ClientLeft = 45
  7. ClientTop = 330
  8. ClientWidth = 4560
  9. Icon = "Find.frx":0000
  10. LinkTopic = "Form1"
  11. MaxButton = 0 'False
  12. MinButton = 0 'False
  13. ScaleHeight = 2235
  14. ScaleWidth = 4560
  15. ShowInTaskbar = 0 'False
  16. StartUpPosition = 3 'Windows Default
  17. Begin VB.CommandButton OkButton
  18. Caption = "OK"
  19. Default = -1 'True
  20. Height = 345
  21. Left = 1800
  22. TabIndex = 8
  23. Top = 1800
  24. Width = 1260
  25. End
  26. Begin VB.CommandButton CancelButton
  27. Caption = "Cancel"
  28. Height = 345
  29. Left = 3240
  30. TabIndex = 7
  31. Top = 1800
  32. Width = 1260
  33. End
  34. Begin VB.CheckBox WholeStringCheck
  35. Caption = "Match whole string only"
  36. Height = 255
  37. Left = 120
  38. TabIndex = 6
  39. Top = 1440
  40. Width = 2175
  41. End
  42. Begin VB.Frame LookAtFrame
  43. Caption = "Look at:"
  44. Height = 735
  45. Left = 120
  46. TabIndex = 2
  47. Top = 600
  48. Width = 4335
  49. Begin VB.CheckBox DataCheck
  50. Caption = "Data"
  51. Height = 195
  52. Left = 3000
  53. TabIndex = 5
  54. Top = 360
  55. Value = 1 'Checked
  56. Width = 1095
  57. End
  58. Begin VB.CheckBox KeysCheck
  59. Caption = "Keys"
  60. Height = 195
  61. Left = 120
  62. TabIndex = 4
  63. Top = 360
  64. Value = 1 'Checked
  65. Width = 1095
  66. End
  67. Begin VB.CheckBox NamesCheck
  68. Caption = "Names"
  69. Height = 195
  70. Left = 1560
  71. TabIndex = 3
  72. Top = 360
  73. Value = 1 'Checked
  74. Width = 1095
  75. End
  76. End
  77. Begin VB.TextBox FindText
  78. Height = 285
  79. Left = 1080
  80. TabIndex = 1
  81. Top = 240
  82. Width = 3375
  83. End
  84. Begin VB.Label Label1
  85. Caption = "Find What:"
  86. Height = 255
  87. Left = 120
  88. TabIndex = 0
  89. Top = 240
  90. Width = 975
  91. End
  92. End
  93. Attribute VB_Name = "FindForm"
  94. Attribute VB_GlobalNameSpace = False
  95. Attribute VB_Creatable = False
  96. Attribute VB_PredeclaredId = True
  97. Attribute VB_Exposed = False
  98. Option Explicit
  99. DefInt A-Z
  100. Private Sub OkButton_Click()
  101. If FindText.Text <> "" Then
  102. 'We're done
  103. Me.Hide
  104. 'Set search parameters
  105. Load FindWorkingForm
  106. FindWorkingForm.Target = FindText.Text
  107. FindWorkingForm.SearchKeys = (KeysCheck.Value = vbChecked)
  108. FindWorkingForm.SearchNames = (NamesCheck.Value = vbChecked)
  109. FindWorkingForm.SearchData = (DataCheck.Value = vbChecked)
  110. FindWorkingForm.WholeMatch = (WholeStringCheck.Value = vbChecked)
  111. FindWorkingForm.NewSearch = True
  112. 'Search
  113. FindWorkingForm.Show vbModal, MainForm
  114. Else
  115. MsgBox "Please specify a string to search for.", vbExclamation + vbOKOnly, "Find"
  116. End If
  117. End Sub
  118. Private Sub CancelButton_Click()
  119. Me.Hide
  120. End Sub