MainForm.dfm 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. object frmMain: TfrmMain
  2. Left = 196
  3. Top = 179
  4. Width = 342
  5. Height = 296
  6. Caption = 'Indy HTTP Server Demo (SSL Only)'
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'MS Sans Serif'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. Position = poDesktopCenter
  15. OnActivate = FormActivate
  16. OnCreate = FormCreate
  17. OnDestroy = FormDestroy
  18. PixelsPerInch = 96
  19. TextHeight = 13
  20. object pnlButtonBar: TPanel
  21. Left = 0
  22. Top = 221
  23. Width = 334
  24. Height = 41
  25. Align = alBottom
  26. BevelOuter = bvLowered
  27. TabOrder = 0
  28. DesignSize = (
  29. 334
  30. 41)
  31. object btnStartStop: TButton
  32. Left = 256
  33. Top = 8
  34. Width = 75
  35. Height = 25
  36. Anchors = [akTop, akRight]
  37. Caption = 'Start Server'
  38. TabOrder = 0
  39. OnClick = btnStartStopClick
  40. end
  41. end
  42. object pcMain: TPageControl
  43. Left = 0
  44. Top = 0
  45. Width = 334
  46. Height = 193
  47. ActivePage = tsSSLSetup
  48. Align = alTop
  49. TabIndex = 0
  50. TabOrder = 1
  51. object tsSSLSetup: TTabSheet
  52. Caption = 'SSL Setup'
  53. ImageIndex = 2
  54. object Label5: TLabel
  55. Left = 8
  56. Top = 8
  57. Width = 69
  58. Height = 13
  59. Caption = 'Certificate File:'
  60. end
  61. object Label6: TLabel
  62. Left = 144
  63. Top = 8
  64. Width = 52
  65. Height = 13
  66. Caption = 'Cipher List:'
  67. end
  68. object Label7: TLabel
  69. Left = 8
  70. Top = 56
  71. Width = 40
  72. Height = 13
  73. Caption = 'Key File:'
  74. end
  75. object Label8: TLabel
  76. Left = 144
  77. Top = 56
  78. Width = 95
  79. Height = 13
  80. Caption = 'Root Certificate File:'
  81. end
  82. object Label9: TLabel
  83. Left = 8
  84. Top = 104
  85. Width = 49
  86. Height = 13
  87. Caption = 'Password:'
  88. end
  89. object edCertFile: TEdit
  90. Left = 8
  91. Top = 24
  92. Width = 121
  93. Height = 21
  94. TabOrder = 0
  95. Text = 'edCertFile'
  96. end
  97. object edCipherList: TEdit
  98. Left = 144
  99. Top = 24
  100. Width = 121
  101. Height = 21
  102. TabOrder = 1
  103. Text = 'edCipherList'
  104. end
  105. object edKeyFile: TEdit
  106. Left = 8
  107. Top = 72
  108. Width = 121
  109. Height = 21
  110. TabOrder = 2
  111. Text = 'key.pem'
  112. end
  113. object edRootCertFile: TEdit
  114. Left = 144
  115. Top = 72
  116. Width = 121
  117. Height = 21
  118. TabOrder = 3
  119. Text = 'edRootCertFile'
  120. end
  121. object edPassword: TEdit
  122. Left = 8
  123. Top = 120
  124. Width = 121
  125. Height = 21
  126. PasswordChar = '*'
  127. TabOrder = 4
  128. Text = 'edPassword'
  129. end
  130. object cbMaskPass: TCheckBox
  131. Left = 136
  132. Top = 128
  133. Width = 97
  134. Height = 17
  135. Caption = 'Mask Password'
  136. Checked = True
  137. State = cbChecked
  138. TabOrder = 5
  139. OnClick = cbMaskPassClick
  140. end
  141. end
  142. object tsSettings: TTabSheet
  143. Caption = 'Settings'
  144. DesignSize = (
  145. 326
  146. 165)
  147. object Label2: TLabel
  148. Left = 4
  149. Top = 8
  150. Width = 51
  151. Height = 13
  152. Caption = 'Bind to IPs'
  153. end
  154. object Label3: TLabel
  155. Left = 120
  156. Top = 8
  157. Width = 54
  158. Height = 13
  159. Caption = 'Bind to port'
  160. end
  161. object Label4: TLabel
  162. Left = 120
  163. Top = 48
  164. Width = 118
  165. Height = 13
  166. Caption = 'Select port from stack list'
  167. end
  168. object Label1: TLabel
  169. Left = 120
  170. Top = 88
  171. Width = 83
  172. Height = 13
  173. Caption = 'Page Root Folder'
  174. end
  175. object lbIPs: TCheckListBox
  176. Left = 4
  177. Top = 24
  178. Width = 109
  179. Height = 133
  180. Anchors = [akLeft, akTop, akBottom]
  181. ItemHeight = 13
  182. TabOrder = 0
  183. end
  184. object cbPorts: TComboBox
  185. Left = 120
  186. Top = 64
  187. Width = 145
  188. Height = 21
  189. Style = csDropDownList
  190. ItemHeight = 0
  191. TabOrder = 1
  192. end
  193. object edPort: TEdit
  194. Left = 120
  195. Top = 24
  196. Width = 65
  197. Height = 21
  198. TabOrder = 2
  199. Text = '8080'
  200. OnKeyPress = edPortKeyPress
  201. end
  202. object edServerRoot: TEdit
  203. Left = 120
  204. Top = 104
  205. Width = 201
  206. Height = 21
  207. TabOrder = 3
  208. Text = 'edServerRoot'
  209. end
  210. end
  211. object tsProcessLog: TTabSheet
  212. Caption = 'Process Log'
  213. ImageIndex = 1
  214. object lbProcesses: TListBox
  215. Left = 0
  216. Top = 0
  217. Width = 326
  218. Height = 165
  219. Style = lbOwnerDrawFixed
  220. Align = alClient
  221. ItemHeight = 13
  222. TabOrder = 0
  223. OnDrawItem = lbProcessesDrawItem
  224. end
  225. end
  226. end
  227. object IdAntiFreeze1: TIdAntiFreeze
  228. Left = 32
  229. Top = 200
  230. end
  231. object IdSchedulerOfThreadDefault1: TIdSchedulerOfThreadDefault
  232. MaxThreads = 100
  233. Left = 64
  234. Top = 200
  235. end
  236. object Server: TIdHTTPServer
  237. OnStatus = ServerStatus
  238. Bindings = <>
  239. IOHandler = OpenSSL
  240. OnConnect = ServerConnect
  241. OnDisconnect = ServerDisconnect
  242. OnException = ServerException
  243. Scheduler = IdSchedulerOfThreadDefault1
  244. OnQuerySSLPort = ServerQuerySSLPort
  245. OnCommandGet = ServerCommandGet
  246. Top = 200
  247. end
  248. object OpenSSL: TIdServerIOHandlerSSLOpenSSL
  249. SSLOptions.KeyFile = 'key.pem'
  250. SSLOptions.Method = sslvSSLv2
  251. SSLOptions.Mode = sslmUnassigned
  252. SSLOptions.VerifyMode = []
  253. SSLOptions.VerifyDepth = 0
  254. OnGetPassword = OpenSSLGetPassword
  255. Left = 96
  256. Top = 200
  257. end
  258. end