HTTPServer_frMain.fmx 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. object frMain: TfrMain
  2. Left = 0
  3. Top = 0
  4. Caption = 'HTTP server example'
  5. ClientHeight = 220
  6. ClientWidth = 360
  7. Position = DesktopCenter
  8. FormFactor.Width = 320
  9. FormFactor.Height = 480
  10. FormFactor.Devices = [Desktop]
  11. DesignerMasterStyle = 0
  12. object pnTop: TPanel
  13. Align = Top
  14. Margins.Left = 6.000000000000000000
  15. Margins.Top = 6.000000000000000000
  16. Margins.Right = 6.000000000000000000
  17. Margins.Bottom = 6.000000000000000000
  18. Position.X = 6.000000000000000000
  19. Position.Y = 6.000000000000000000
  20. Size.Width = 348.000000000000000000
  21. Size.Height = 51.000000000000000000
  22. Size.PlatformDefault = False
  23. TabOrder = 0
  24. object lbPort: TLabel
  25. Align = Left
  26. AutoSize = True
  27. StyledSettings = [Family, Size, FontColor]
  28. Margins.Top = 10.000000000000000000
  29. Margins.Right = 4.000000000000000000
  30. Margins.Bottom = 10.000000000000000000
  31. Position.Y = 10.000000000000000000
  32. Size.Width = 39.000000000000000000
  33. Size.Height = 31.000000000000000000
  34. Size.PlatformDefault = False
  35. TextSettings.Font.StyleExt = {00070000000000000004000000}
  36. TextSettings.HorzAlign = Trailing
  37. Text = '&Port:'
  38. TabOrder = 0
  39. end
  40. object edPort: TNumberBox
  41. Touch.InteractiveGestures = [LongTap, DoubleTap]
  42. Align = Left
  43. TabOrder = 1
  44. Cursor = crIBeam
  45. Max = 65535.000000000000000000
  46. TextSettings.HorzAlign = Trailing
  47. Position.X = 43.000000000000000000
  48. Position.Y = 14.000000000000000000
  49. Margins.Top = 14.000000000000000000
  50. Margins.Right = 10.000000000000000000
  51. Margins.Bottom = 14.000000000000000000
  52. Size.Width = 80.000000000000000000
  53. Size.Height = 23.000000000000000000
  54. Size.PlatformDefault = False
  55. OnChange = edPortChange
  56. OnChangeTracking = edPortChangeTracking
  57. end
  58. object btStart: TButton
  59. Action = acStart
  60. Align = Left
  61. Cursor = crHandPoint
  62. Enabled = True
  63. ImageIndex = -1
  64. Margins.Left = 10.000000000000000000
  65. Margins.Top = 10.000000000000000000
  66. Margins.Bottom = 10.000000000000000000
  67. Position.X = 143.000000000000000000
  68. Position.Y = 10.000000000000000000
  69. Size.Width = 80.000000000000000000
  70. Size.Height = 31.000000000000000000
  71. Size.PlatformDefault = False
  72. TabOrder = 2
  73. end
  74. object btStop: TButton
  75. Action = acStop
  76. Align = Left
  77. Cursor = crHandPoint
  78. Enabled = False
  79. ImageIndex = -1
  80. Margins.Left = 10.000000000000000000
  81. Margins.Top = 10.000000000000000000
  82. Margins.Right = 10.000000000000000000
  83. Margins.Bottom = 10.000000000000000000
  84. Position.X = 233.000000000000000000
  85. Position.Y = 10.000000000000000000
  86. Size.Width = 80.000000000000000000
  87. Size.Height = 31.000000000000000000
  88. Size.PlatformDefault = False
  89. TabOrder = 3
  90. end
  91. end
  92. object lbLink: TLabel
  93. Align = Top
  94. AutoSize = True
  95. Cursor = crHandPoint
  96. Enabled = False
  97. StyledSettings = [Family, Size]
  98. HitTest = True
  99. Margins.Left = 6.000000000000000000
  100. Margins.Top = 6.000000000000000000
  101. Margins.Right = 6.000000000000000000
  102. Margins.Bottom = 6.000000000000000000
  103. Position.X = 6.000000000000000000
  104. Position.Y = 69.000000000000000000
  105. Size.Width = 348.000000000000000000
  106. Size.Height = 16.000000000000000000
  107. Size.PlatformDefault = False
  108. TextSettings.Font.StyleExt = {04040000000000000004000000}
  109. TextSettings.FontColor = claBlue
  110. TextSettings.WordWrap = False
  111. Text = 'http://localhost'
  112. TabOrder = 1
  113. OnClick = lbLinkClick
  114. OnMouseEnter = lbLinkMouseEnter
  115. OnMouseLeave = lbLinkMouseLeave
  116. end
  117. object alMain: TActionList
  118. Left = 40
  119. Top = 120
  120. object acStart: TAction
  121. Category = 'HTTP server'
  122. Text = '&Start'
  123. ShortCut = 120
  124. OnExecute = acStartExecute
  125. end
  126. object acStop: TAction
  127. Category = 'HTTP server'
  128. Text = 'S&top'
  129. Enabled = False
  130. ShortCut = 121
  131. OnExecute = acStopExecute
  132. end
  133. end
  134. object BrookHTTPServer1: TBrookHTTPServer
  135. NoFavicon = True
  136. OnRequest = BrookHTTPServer1Request
  137. OnRequestError = BrookHTTPServer1RequestError
  138. OnStart = BrookHTTPServer1Start
  139. OnStop = BrookHTTPServer1Stop
  140. Left = 152
  141. Top = 120
  142. end
  143. end