Leaked source code of windows server 2003
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.

138 lines
4.1 KiB

  1. VERSION 5.00
  2. Begin VB.Form CheckOptionsForm
  3. BorderStyle = 3 'Fixed Dialog
  4. Caption = "Check Options"
  5. ClientHeight = 2340
  6. ClientLeft = 45
  7. ClientTop = 330
  8. ClientWidth = 4350
  9. Icon = "ChkOptn.frx":0000
  10. LinkTopic = "Form1"
  11. MaxButton = 0 'False
  12. MinButton = 0 'False
  13. ScaleHeight = 2340
  14. ScaleWidth = 4350
  15. ShowInTaskbar = 0 'False
  16. StartUpPosition = 3 'Windows Default
  17. Begin VB.TextBox MaxNumErrorsText
  18. Height = 285
  19. Left = 1920
  20. TabIndex = 9
  21. Top = 1320
  22. Width = 1335
  23. End
  24. Begin VB.TextBox MaxPropSizeText
  25. Height = 285
  26. Left = 1920
  27. TabIndex = 7
  28. Top = 840
  29. Width = 1335
  30. End
  31. Begin VB.TextBox MaxKeySizeText
  32. Height = 285
  33. Left = 1920
  34. TabIndex = 2
  35. Top = 360
  36. Width = 1335
  37. End
  38. Begin VB.CommandButton CancelButton
  39. Caption = "Cancel"
  40. Height = 345
  41. Left = 3000
  42. TabIndex = 1
  43. Top = 1920
  44. Width = 1260
  45. End
  46. Begin VB.CommandButton OkButton
  47. Cancel = -1 'True
  48. Caption = "OK"
  49. Default = -1 'True
  50. Height = 345
  51. Left = 1560
  52. TabIndex = 0
  53. Top = 1920
  54. Width = 1260
  55. End
  56. Begin VB.Label Label6
  57. Caption = "per key"
  58. Height = 255
  59. Left = 3360
  60. TabIndex = 10
  61. Top = 1320
  62. Width = 855
  63. End
  64. Begin VB.Label Label5
  65. Caption = "bytes"
  66. Height = 255
  67. Left = 3360
  68. TabIndex = 8
  69. Top = 840
  70. Width = 855
  71. End
  72. Begin VB.Label Label4
  73. Caption = "bytes"
  74. Height = 255
  75. Left = 3360
  76. TabIndex = 6
  77. Top = 360
  78. Width = 855
  79. End
  80. Begin VB.Label Label3
  81. Caption = "Max Num. Errors:"
  82. Height = 255
  83. Left = 120
  84. TabIndex = 5
  85. Top = 1320
  86. Width = 1695
  87. End
  88. Begin VB.Label Label2
  89. Caption = "Max Property Size:"
  90. Height = 255
  91. Left = 120
  92. TabIndex = 4
  93. Top = 840
  94. Width = 1695
  95. End
  96. Begin VB.Label Label1
  97. Caption = "Max Key Size:"
  98. Height = 255
  99. Left = 120
  100. TabIndex = 3
  101. Top = 360
  102. Width = 1695
  103. End
  104. End
  105. Attribute VB_Name = "CheckOptionsForm"
  106. Attribute VB_GlobalNameSpace = False
  107. Attribute VB_Creatable = False
  108. Attribute VB_PredeclaredId = True
  109. Attribute VB_Exposed = False
  110. Option Explicit
  111. DefInt A-Z
  112. Private Sub Form_Load()
  113. MainForm.MetaUtilObj.Config("MaxKeySize") = Config.MaxKeySize
  114. MainForm.MetaUtilObj.Config("MaxPropertySize") = Config.MaxPropSize
  115. MainForm.MetaUtilObj.Config("MaxNumberOfErrors") = Config.MaxNumErrors
  116. End Sub
  117. Public Sub Init()
  118. MaxKeySizeText.Text = CStr(MainForm.MetaUtilObj.Config("MaxKeySize"))
  119. MaxPropSizeText.Text = CStr(MainForm.MetaUtilObj.Config("MaxPropertySize"))
  120. MaxNumErrorsText.Text = CStr(MainForm.MetaUtilObj.Config("MaxNumberOfErrors"))
  121. End Sub
  122. Private Sub OkButton_Click()
  123. Config.MaxKeySize = CLng(MaxKeySizeText.Text)
  124. Config.MaxPropSize = CLng(MaxPropSizeText.Text)
  125. Config.MaxNumErrors = CLng(MaxNumErrorsText.Text)
  126. MainForm.MetaUtilObj.Config("MaxKeySize") = CLng(MaxKeySizeText.Text)
  127. MainForm.MetaUtilObj.Config("MaxPropertySize") = CLng(MaxPropSizeText.Text)
  128. MainForm.MetaUtilObj.Config("MaxNumberOfErrors") = CLng(MaxNumErrorsText.Text)
  129. Me.Hide
  130. End Sub
  131. Private Sub CancelButton_Click()
  132. Me.Hide
  133. End Sub