main.dfm 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. object FormMain: TFormMain
  2. Left = 142
  3. Top = 172
  4. AutoScroll = False
  5. Caption = 'ComboTarget Demo'
  6. ClientHeight = 371
  7. ClientWidth = 489
  8. Color = clBtnFace
  9. Font.Charset = DEFAULT_CHARSET
  10. Font.Color = clWindowText
  11. Font.Height = -11
  12. Font.Name = 'Arial'
  13. Font.Style = []
  14. OldCreateOrder = False
  15. Position = poScreenCenter
  16. PixelsPerInch = 96
  17. TextHeight = 14
  18. object PageControl1: TPageControl
  19. Left = 0
  20. Top = 129
  21. Width = 489
  22. Height = 242
  23. ActivePage = TabSheetData
  24. Align = alClient
  25. MultiLine = True
  26. TabOrder = 0
  27. object TabSheetText: TTabSheet
  28. Caption = 'Text'
  29. Enabled = False
  30. TabVisible = False
  31. object MemoText: TMemo
  32. Left = 0
  33. Top = 0
  34. Width = 639
  35. Height = 333
  36. Align = alClient
  37. TabOrder = 0
  38. end
  39. end
  40. object TabSheetFiles: TTabSheet
  41. Caption = 'Files'
  42. ImageIndex = 1
  43. TabVisible = False
  44. object Splitter1: TSplitter
  45. Left = 0
  46. Top = 166
  47. Width = 481
  48. Height = 3
  49. Cursor = crVSplit
  50. Align = alBottom
  51. ResizeStyle = rsUpdate
  52. end
  53. object ListBoxFiles: TListBox
  54. Left = 0
  55. Top = 0
  56. Width = 481
  57. Height = 166
  58. Align = alClient
  59. ItemHeight = 14
  60. TabOrder = 0
  61. end
  62. object ListBoxMaps: TListBox
  63. Left = 0
  64. Top = 169
  65. Width = 481
  66. Height = 63
  67. Align = alBottom
  68. ItemHeight = 14
  69. TabOrder = 1
  70. end
  71. end
  72. object TabSheetBitmap: TTabSheet
  73. Caption = 'Bitmap'
  74. ImageIndex = 2
  75. TabVisible = False
  76. object ScrollBox2: TScrollBox
  77. Left = 0
  78. Top = 0
  79. Width = 639
  80. Height = 333
  81. Align = alClient
  82. BorderStyle = bsNone
  83. TabOrder = 0
  84. object ImageBitmap: TImage
  85. Left = 0
  86. Top = 0
  87. Width = 639
  88. Height = 333
  89. AutoSize = True
  90. end
  91. end
  92. end
  93. object TabSheetURL: TTabSheet
  94. Caption = 'URL'
  95. ImageIndex = 3
  96. TabVisible = False
  97. object Label1: TLabel
  98. Left = 12
  99. Top = 20
  100. Width = 20
  101. Height = 14
  102. Caption = 'URL'
  103. FocusControl = EditURLURL
  104. end
  105. object Label2: TLabel
  106. Left = 12
  107. Top = 44
  108. Width = 19
  109. Height = 14
  110. Caption = 'Title'
  111. FocusControl = EditURLTitle
  112. end
  113. object EditURLURL: TEdit
  114. Left = 48
  115. Top = 16
  116. Width = 573
  117. Height = 22
  118. TabOrder = 0
  119. end
  120. object EditURLTitle: TEdit
  121. Left = 48
  122. Top = 40
  123. Width = 573
  124. Height = 22
  125. TabOrder = 1
  126. end
  127. end
  128. object TabSheetData: TTabSheet
  129. Caption = 'Data'
  130. ImageIndex = 4
  131. TabVisible = False
  132. object ListViewData: TListView
  133. Left = 0
  134. Top = 0
  135. Width = 481
  136. Height = 232
  137. Align = alClient
  138. Columns = <
  139. item
  140. AutoSize = True
  141. Caption = 'Filename'
  142. MinWidth = 200
  143. end
  144. item
  145. Alignment = taRightJustify
  146. Caption = 'Size'
  147. MinWidth = 50
  148. end>
  149. TabOrder = 0
  150. ViewStyle = vsReport
  151. OnDblClick = ListViewDataDblClick
  152. end
  153. end
  154. object TabSheetMetaFile: TTabSheet
  155. Caption = 'MetaFile'
  156. ImageIndex = 5
  157. TabVisible = False
  158. object ScrollBox1: TScrollBox
  159. Left = 0
  160. Top = 0
  161. Width = 639
  162. Height = 333
  163. Align = alClient
  164. BorderStyle = bsNone
  165. TabOrder = 0
  166. object ImageMetaFile: TImage
  167. Left = 0
  168. Top = 0
  169. Width = 635
  170. Height = 325
  171. AutoSize = True
  172. end
  173. end
  174. end
  175. end
  176. object Panel2: TPanel
  177. Left = 0
  178. Top = 0
  179. Width = 489
  180. Height = 129
  181. Align = alTop
  182. BevelOuter = bvNone
  183. BorderWidth = 4
  184. Caption = ' '
  185. TabOrder = 1
  186. object PanelDropZone: TPanel
  187. Left = 181
  188. Top = 4
  189. Width = 304
  190. Height = 121
  191. Align = alClient
  192. BevelOuter = bvNone
  193. BorderWidth = 4
  194. Caption = ' '
  195. TabOrder = 0
  196. object Label3: TLabel
  197. Left = 4
  198. Top = 4
  199. Width = 296
  200. Height = 113
  201. Align = alClient
  202. Caption =
  203. 'This application demonstrates the TComboTarget component. TComb' +
  204. 'oTarget is an example of a drop target component which can accep' +
  205. 't multiple unrelated data formats. Drop data anywhere in this w' +
  206. 'indow to have it displayed in the pane below.'
  207. WordWrap = True
  208. end
  209. end
  210. object Panel1: TPanel
  211. Left = 4
  212. Top = 4
  213. Width = 177
  214. Height = 121
  215. Align = alLeft
  216. BevelOuter = bvNone
  217. Caption = ' '
  218. TabOrder = 1
  219. object GroupBox1: TGroupBox
  220. Left = 0
  221. Top = 0
  222. Width = 177
  223. Height = 121
  224. Align = alClient
  225. Caption = ' Accept the following formats '
  226. TabOrder = 0
  227. object CheckBoxText: TCheckBox
  228. Left = 12
  229. Top = 20
  230. Width = 97
  231. Height = 17
  232. Caption = 'Text'
  233. Checked = True
  234. State = cbChecked
  235. TabOrder = 0
  236. OnClick = CheckBoxTextClick
  237. end
  238. object CheckBoxFiles: TCheckBox
  239. Left = 12
  240. Top = 36
  241. Width = 97
  242. Height = 17
  243. Caption = 'Files'
  244. Checked = True
  245. State = cbChecked
  246. TabOrder = 1
  247. OnClick = CheckBoxFilesClick
  248. end
  249. object CheckBoxURLs: TCheckBox
  250. Left = 12
  251. Top = 52
  252. Width = 97
  253. Height = 17
  254. Caption = 'URLs'
  255. Checked = True
  256. State = cbChecked
  257. TabOrder = 2
  258. OnClick = CheckBoxURLsClick
  259. end
  260. object CheckBoxBitmaps: TCheckBox
  261. Left = 12
  262. Top = 68
  263. Width = 97
  264. Height = 17
  265. Caption = 'Bitmaps'
  266. Checked = True
  267. State = cbChecked
  268. TabOrder = 3
  269. OnClick = CheckBoxBitmapsClick
  270. end
  271. object CheckBoxMetaFiles: TCheckBox
  272. Left = 12
  273. Top = 84
  274. Width = 97
  275. Height = 17
  276. Caption = 'Meta files'
  277. Checked = True
  278. State = cbChecked
  279. TabOrder = 4
  280. OnClick = CheckBoxMetaFilesClick
  281. end
  282. object CheckBoxData: TCheckBox
  283. Left = 12
  284. Top = 100
  285. Width = 97
  286. Height = 17
  287. Caption = 'Data'
  288. Checked = True
  289. State = cbChecked
  290. TabOrder = 5
  291. OnClick = CheckBoxDataClick
  292. end
  293. end
  294. end
  295. end
  296. object DropComboTarget1: TDropComboTarget
  297. Dragtypes = [dtCopy, dtMove, dtLink]
  298. GetDataOnEnter = False
  299. OnDrop = DropComboTarget1Drop
  300. ShowImage = True
  301. Target = Owner
  302. AllowAsyncTransfer = False
  303. Left = 196
  304. Top = 80
  305. end
  306. end