main.dfm 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. object FormAutoScroll: TFormAutoScroll
  2. Left = 251
  3. Top = 176
  4. AutoScroll = False
  5. Caption = 'Custom auto scroll demo'
  6. ClientHeight = 409
  7. ClientWidth = 428
  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 = poDefaultPosOnly
  16. OnCreate = FormCreate
  17. PixelsPerInch = 96
  18. TextHeight = 14
  19. object Panel1: TPanel
  20. Left = 0
  21. Top = 0
  22. Width = 428
  23. Height = 264
  24. Align = alClient
  25. BevelOuter = bvNone
  26. BorderWidth = 4
  27. Caption = ' '
  28. TabOrder = 0
  29. object StringGrid1: TStringGrid
  30. Left = 4
  31. Top = 45
  32. Width = 420
  33. Height = 215
  34. Align = alClient
  35. ColCount = 50
  36. RowCount = 26
  37. Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goThumbTracking]
  38. TabOrder = 0
  39. RowHeights = (
  40. 24
  41. 24
  42. 24
  43. 24
  44. 24
  45. 24
  46. 24
  47. 24
  48. 24
  49. 24
  50. 24
  51. 24
  52. 24
  53. 24
  54. 24
  55. 24
  56. 24
  57. 24
  58. 24
  59. 24
  60. 24
  61. 24
  62. 24
  63. 24
  64. 24
  65. 24)
  66. end
  67. object PanelSource: TPanel
  68. Left = 4
  69. Top = 4
  70. Width = 420
  71. Height = 41
  72. Align = alTop
  73. BevelOuter = bvNone
  74. Caption = 'Drag from here and into the grid below'
  75. Font.Charset = DEFAULT_CHARSET
  76. Font.Color = clBlue
  77. Font.Height = -11
  78. Font.Name = 'Arial'
  79. Font.Style = [fsBold]
  80. ParentFont = False
  81. TabOrder = 1
  82. OnMouseDown = PanelSourceMouseDown
  83. end
  84. end
  85. object Panel3: TPanel
  86. Left = 0
  87. Top = 264
  88. Width = 428
  89. Height = 145
  90. Align = alBottom
  91. BevelOuter = bvNone
  92. BorderWidth = 4
  93. Caption = ' '
  94. TabOrder = 1
  95. object RichEdit1: TRichEdit
  96. Left = 4
  97. Top = 4
  98. Width = 420
  99. Height = 137
  100. Align = alClient
  101. BorderStyle = bsNone
  102. Enabled = False
  103. Lines.Strings = (
  104. 'This application demonstrates custom auto scroll margins.'
  105. ''
  106. 'Standard auto scroll uses fixed size scroll margins (or "scroll ' +
  107. 'zone") where the size of '
  108. 'the margins are calculated based on the target control scroll ba' +
  109. 'r width.'
  110. ''
  111. 'This works well for most uses, but in some situations it is desi' +
  112. 'reable to be able to '
  113. 'define different scroll margins for each of the target control'#39's' +
  114. ' edges. An example is the '
  115. 'above grid where we would like the scroll zone to be calculated ' +
  116. 'relative to the data '
  117. 'area of the grid.'
  118. ' ')
  119. ParentColor = True
  120. ReadOnly = True
  121. TabOrder = 0
  122. WantReturns = False
  123. end
  124. end
  125. object DropTextTarget1: TDropTextTarget
  126. Dragtypes = [dtCopy]
  127. GetDataOnEnter = False
  128. OnEnter = DropTextTarget1Enter
  129. OnDragOver = DropTextTarget1DragOver
  130. OnDrop = DropTextTarget1Drop
  131. ShowImage = True
  132. Target = StringGrid1
  133. AllowAsyncTransfer = False
  134. Left = 24
  135. Top = 56
  136. end
  137. object DropTextSource1: TDropTextSource
  138. DragTypes = [dtCopy]
  139. ImageIndex = 0
  140. ShowImage = False
  141. ImageHotSpotX = 16
  142. ImageHotSpotY = 16
  143. AllowAsyncTransfer = False
  144. Left = 24
  145. Top = 8
  146. end
  147. end