HTTPUpload_frMain.fmx 4.2 KB

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