unit1.lfm 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. object Form1: TForm1
  2. Left = 264
  3. Height = 265
  4. Top = 133
  5. Width = 380
  6. Caption = 'Setup Serial Link'
  7. ClientHeight = 265
  8. ClientWidth = 380
  9. OnClose = FormClose
  10. OnCreate = FormCreate
  11. LCLVersion = '1.0.14.0'
  12. object Label1: TLabel
  13. Left = 203
  14. Height = 16
  15. Top = 33
  16. Width = 26
  17. Caption = 'Port:'
  18. ParentColor = False
  19. end
  20. object Label2: TLabel
  21. Left = 203
  22. Height = 16
  23. Top = 63
  24. Width = 54
  25. Caption = 'Baudrate :'
  26. ParentColor = False
  27. end
  28. object Label3: TLabel
  29. Left = 203
  30. Height = 16
  31. Top = 96
  32. Width = 37
  33. Caption = 'Parity :'
  34. ParentColor = False
  35. end
  36. object Label4: TLabel
  37. Left = 203
  38. Height = 16
  39. Top = 127
  40. Width = 50
  41. Caption = 'StopBits :'
  42. ParentColor = False
  43. end
  44. object Label5: TLabel
  45. Left = 203
  46. Height = 16
  47. Top = 159
  48. Width = 50
  49. Caption = 'Databits :'
  50. ParentColor = False
  51. end
  52. object Label6: TLabel
  53. Left = 203
  54. Height = 16
  55. Top = 191
  56. Width = 72
  57. Caption = 'FlowControl :'
  58. ParentColor = False
  59. end
  60. object BitBtn_close: TBitBtn
  61. Left = 295
  62. Height = 30
  63. Top = 227
  64. Width = 75
  65. Caption = '&Close'
  66. Kind = bkClose
  67. TabOrder = 0
  68. end
  69. object ComboBox_port: TComboBox
  70. Left = 270
  71. Height = 23
  72. Top = 26
  73. Width = 100
  74. ItemHeight = 15
  75. ItemIndex = 7
  76. Items.Strings = (
  77. 'COM1'
  78. 'COM2'
  79. 'COM3'
  80. 'COM4'
  81. 'COM5'
  82. 'COM6'
  83. 'COM7'
  84. 'COM8'
  85. )
  86. TabOrder = 1
  87. Text = 'COM8'
  88. end
  89. object ComboBox_baudrate: TComboBox
  90. Left = 270
  91. Height = 23
  92. Top = 56
  93. Width = 100
  94. ItemHeight = 15
  95. ItemIndex = 5
  96. Items.Strings = (
  97. 'br___300'
  98. 'br___600'
  99. 'br__1200'
  100. 'br__2400'
  101. 'br__4800'
  102. 'br__9600'
  103. 'br_19200'
  104. 'br_38400'
  105. 'br_57600'
  106. 'br115200'
  107. )
  108. TabOrder = 2
  109. Text = 'br__9600'
  110. end
  111. object ComboBox_parite: TComboBox
  112. Left = 270
  113. Height = 23
  114. Top = 88
  115. Width = 100
  116. ItemHeight = 15
  117. ItemIndex = 0
  118. Items.Strings = (
  119. 'pNone'
  120. 'pOdd'
  121. 'pEven'
  122. 'pMark'
  123. 'pSpace'
  124. )
  125. TabOrder = 3
  126. Text = 'pNone'
  127. end
  128. object ComboBox_stopbits: TComboBox
  129. Left = 270
  130. Height = 23
  131. Top = 120
  132. Width = 100
  133. ItemHeight = 15
  134. ItemIndex = 0
  135. Items.Strings = (
  136. 'sbOne'
  137. 'sbTwo'
  138. )
  139. TabOrder = 4
  140. Text = 'sbOne'
  141. end
  142. object ComboBox_databits: TComboBox
  143. Left = 270
  144. Height = 23
  145. Top = 152
  146. Width = 100
  147. ItemHeight = 15
  148. ItemIndex = 0
  149. Items.Strings = (
  150. 'db8bits'
  151. 'db7bits'
  152. 'db6bits'
  153. 'db5bits'
  154. )
  155. TabOrder = 5
  156. Text = 'db8bits'
  157. end
  158. object ComboBox_flowcontrol: TComboBox
  159. Left = 270
  160. Height = 23
  161. Top = 184
  162. Width = 100
  163. ItemHeight = 15
  164. ItemIndex = 0
  165. Items.Strings = (
  166. 'fcNone'
  167. 'fcXonXoff'
  168. 'fcHardware'
  169. )
  170. TabOrder = 6
  171. Text = 'fcNone'
  172. end
  173. object Memo_terminal: TMemo
  174. Left = 8
  175. Height = 184
  176. Top = 40
  177. Width = 184
  178. TabOrder = 7
  179. end
  180. object Button_connect: TButton
  181. Left = 8
  182. Height = 25
  183. Top = 232
  184. Width = 75
  185. Caption = 'Connect !'
  186. OnClick = Button_connectClick
  187. TabOrder = 8
  188. end
  189. object Button_disconnect: TButton
  190. Left = 117
  191. Height = 25
  192. Top = 232
  193. Width = 75
  194. Caption = 'Disconnect !'
  195. OnClick = Button_disconnectClick
  196. TabOrder = 9
  197. end
  198. object Edit1: TEdit
  199. Left = 8
  200. Height = 23
  201. Top = 8
  202. Width = 88
  203. TabOrder = 10
  204. Text = 'Text to send...'
  205. end
  206. object Button_send: TButton
  207. Left = 104
  208. Height = 25
  209. Top = 8
  210. Width = 75
  211. Caption = 'Send'
  212. OnClick = Button_sendClick
  213. TabOrder = 11
  214. end
  215. object SdpoSerial1: TSdpoSerial
  216. Active = False
  217. BaudRate = br__9600
  218. DataBits = db8bits
  219. Parity = pNone
  220. FlowControl = fcNone
  221. StopBits = sbOne
  222. Device = 'COM8'
  223. OnRxData = SdpoSerial1RxData
  224. left = 248
  225. top = 216
  226. end
  227. end