UnitMain.dfm 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. object FormMain: TFormMain
  2. Left = 0
  3. Top = 0
  4. Cursor = crCross
  5. Caption = 'RepaintMode test'
  6. ClientHeight = 393
  7. ClientWidth = 994
  8. Color = clBtnFace
  9. Font.Charset = DEFAULT_CHARSET
  10. Font.Color = clWindowText
  11. Font.Height = -12
  12. Font.Name = 'Segoe UI'
  13. Font.Style = []
  14. OnCreate = FormCreate
  15. OnResize = FormResize
  16. TextHeight = 15
  17. object Splitter1: TSplitter
  18. Left = 0
  19. Top = 101
  20. Width = 994
  21. Height = 3
  22. Cursor = crVSplit
  23. Align = alTop
  24. ExplicitWidth = 292
  25. end
  26. object PanelTop: TPanel
  27. Left = 0
  28. Top = 0
  29. Width = 994
  30. Height = 101
  31. Align = alTop
  32. BevelEdges = [beBottom]
  33. BevelKind = bkFlat
  34. BevelOuter = bvNone
  35. FullRepaint = False
  36. ParentColor = True
  37. ShowCaption = False
  38. TabOrder = 0
  39. object Panel5: TPanel
  40. Left = 809
  41. Top = 0
  42. Width = 185
  43. Height = 99
  44. Align = alRight
  45. BevelEdges = [beLeft]
  46. BevelKind = bkFlat
  47. BevelOuter = bvNone
  48. FullRepaint = False
  49. ParentColor = True
  50. ShowCaption = False
  51. TabOrder = 0
  52. object ButtonClear: TButton
  53. Left = 4
  54. Top = 6
  55. Width = 75
  56. Height = 25
  57. Caption = 'Clear all'
  58. TabOrder = 0
  59. OnClick = ButtonClearClick
  60. end
  61. object RadioGroupRepaint: TRadioGroup
  62. Left = 4
  63. Top = 30
  64. Width = 153
  65. Height = 65
  66. Caption = 'Repaint mode'
  67. ItemIndex = 2
  68. Items.Strings = (
  69. 'Full repaint'
  70. 'Direct repaint'
  71. 'Optimized repaint')
  72. TabOrder = 1
  73. OnClick = RadioGroupRepaintClick
  74. end
  75. object ButtonDraw: TButton
  76. Left = 85
  77. Top = 6
  78. Width = 75
  79. Height = 25
  80. Caption = 'Draw stuff'
  81. TabOrder = 2
  82. OnClick = ButtonDrawClick
  83. end
  84. end
  85. object Panel6: TPanel
  86. Left = 0
  87. Top = 0
  88. Width = 809
  89. Height = 99
  90. Align = alClient
  91. BevelOuter = bvNone
  92. FullRepaint = False
  93. ParentColor = True
  94. ShowCaption = False
  95. TabOrder = 1
  96. object Label1: TLabel
  97. Left = 0
  98. Top = 0
  99. Width = 809
  100. Height = 15
  101. Align = alTop
  102. Caption =
  103. 'Left mouse button: Draw. Right mouse button: Draw stuff. Middle ' +
  104. 'mouse button: Clear'
  105. Font.Charset = DEFAULT_CHARSET
  106. Font.Color = clWindowText
  107. Font.Height = -12
  108. Font.Name = 'Segoe UI'
  109. Font.Style = [fsBold]
  110. ParentFont = False
  111. ShowAccelChar = False
  112. Transparent = True
  113. WordWrap = True
  114. ExplicitWidth = 481
  115. end
  116. object MemoHelp: TMemo
  117. Left = 0
  118. Top = 15
  119. Width = 809
  120. Height = 84
  121. Align = alClient
  122. BevelInner = bvNone
  123. BevelOuter = bvNone
  124. BorderStyle = bsNone
  125. Enabled = False
  126. Font.Charset = ANSI_CHARSET
  127. Font.Color = clWindowText
  128. Font.Height = -12
  129. Font.Name = 'Segoe UI'
  130. Font.Style = []
  131. Lines.Strings = (
  132. 'Lorem ipsum dolor')
  133. ParentColor = True
  134. ParentFont = False
  135. ReadOnly = True
  136. TabOrder = 0
  137. WantReturns = False
  138. end
  139. end
  140. end
  141. object Panel1: TPanel
  142. Left = 0
  143. Top = 104
  144. Width = 250
  145. Height = 289
  146. Align = alLeft
  147. BevelOuter = bvNone
  148. FullRepaint = False
  149. Padding.Left = 2
  150. Padding.Right = 2
  151. Padding.Bottom = 2
  152. ParentColor = True
  153. ShowCaption = False
  154. TabOrder = 1
  155. object Label2: TLabel
  156. Left = 2
  157. Top = 0
  158. Width = 246
  159. Height = 15
  160. Align = alTop
  161. Caption = 'TPaintBox32'
  162. ShowAccelChar = False
  163. WordWrap = True
  164. ExplicitWidth = 65
  165. end
  166. object PaintBox32: TPaintBox32
  167. Left = 2
  168. Top = 15
  169. Width = 246
  170. Height = 272
  171. Cursor = crCross
  172. Align = alClient
  173. RepaintMode = rmOptimizer
  174. TabOrder = 0
  175. OnMouseDown = PaintBox32MouseDown
  176. OnMouseMove = PaintBox32MouseMove
  177. OnMouseUp = PaintBox32MouseUp
  178. OnPaintBuffer = PaintBox32PaintBuffer
  179. end
  180. end
  181. object Panel2: TPanel
  182. Left = 250
  183. Top = 104
  184. Width = 244
  185. Height = 289
  186. Align = alClient
  187. BevelOuter = bvNone
  188. FullRepaint = False
  189. Padding.Left = 2
  190. Padding.Right = 2
  191. Padding.Bottom = 2
  192. ParentColor = True
  193. ShowCaption = False
  194. TabOrder = 2
  195. object Label3: TLabel
  196. Left = 2
  197. Top = 0
  198. Width = 240
  199. Height = 15
  200. Align = alTop
  201. Caption = 'TImage32'
  202. ShowAccelChar = False
  203. WordWrap = True
  204. ExplicitWidth = 51
  205. end
  206. object Image32: TImage32
  207. Left = 2
  208. Top = 15
  209. Width = 240
  210. Height = 272
  211. Cursor = crCross
  212. Align = alClient
  213. Bitmap.ResamplerClassName = 'TNearestResampler'
  214. BitmapAlign = baCustom
  215. RepaintMode = rmOptimizer
  216. Scale = 1.000000000000000000
  217. ScaleMode = smScale
  218. MousePan.Enabled = True
  219. MousePan.ShiftState = [mssShift]
  220. MouseZoom.Enabled = True
  221. MouseZoom.MaintainPivot = False
  222. TabOrder = 0
  223. OnMouseDown = Image32MouseDown
  224. OnMouseMove = ImgView32MouseMove
  225. OnMouseUp = Image32MouseUp
  226. ExplicitLeft = 0
  227. end
  228. end
  229. object Panel3: TPanel
  230. Left = 494
  231. Top = 104
  232. Width = 250
  233. Height = 289
  234. Align = alRight
  235. BevelOuter = bvNone
  236. FullRepaint = False
  237. Padding.Left = 2
  238. Padding.Right = 2
  239. Padding.Bottom = 2
  240. ParentColor = True
  241. ShowCaption = False
  242. TabOrder = 3
  243. object Label4: TLabel
  244. Left = 2
  245. Top = 0
  246. Width = 246
  247. Height = 15
  248. Align = alTop
  249. Caption = 'TImgView32'
  250. ShowAccelChar = False
  251. WordWrap = True
  252. ExplicitWidth = 64
  253. end
  254. object ImgView32: TImgView32
  255. Left = 2
  256. Top = 15
  257. Width = 246
  258. Height = 272
  259. Cursor = crCross
  260. Align = alClient
  261. Bitmap.ResamplerClassName = 'TNearestResampler'
  262. BitmapAlign = baCustom
  263. Centered = False
  264. RepaintMode = rmOptimizer
  265. Scale = 1.000000000000000000
  266. ScaleMode = smScale
  267. MousePan.Enabled = True
  268. MousePan.ShiftState = [mssShift]
  269. MouseZoom.Enabled = True
  270. MouseZoom.MaintainPivot = False
  271. ScrollBars.ShowHandleGrip = False
  272. ScrollBars.Style = rbsDefault
  273. ScrollBars.Size = 17
  274. ScrollBars.Visibility = svHidden
  275. SizeGrip = sgNone
  276. OverSize = 0
  277. TabOrder = 0
  278. OnMouseDown = Image32MouseDown
  279. OnMouseMove = ImgView32MouseMove
  280. OnMouseUp = Image32MouseUp
  281. end
  282. end
  283. object Panel4: TPanel
  284. Left = 744
  285. Top = 104
  286. Width = 250
  287. Height = 289
  288. Align = alRight
  289. BevelOuter = bvNone
  290. FullRepaint = False
  291. Padding.Left = 2
  292. Padding.Right = 2
  293. Padding.Bottom = 2
  294. ParentColor = True
  295. ShowCaption = False
  296. TabOrder = 4
  297. object Label5: TLabel
  298. Left = 2
  299. Top = 0
  300. Width = 246
  301. Height = 15
  302. Align = alTop
  303. Caption = 'TImgView32 with layer'
  304. ShowAccelChar = False
  305. WordWrap = True
  306. ExplicitWidth = 118
  307. end
  308. object ImgView32Layers: TImgView32
  309. Left = 2
  310. Top = 15
  311. Width = 246
  312. Height = 272
  313. Align = alClient
  314. Bitmap.ResamplerClassName = 'TNearestResampler'
  315. BitmapAlign = baCustom
  316. Centered = False
  317. RepaintMode = rmOptimizer
  318. Scale = 1.000000000000000000
  319. ScaleMode = smScale
  320. MousePan.Enabled = True
  321. MousePan.ShiftState = [mssShift]
  322. MouseZoom.Enabled = True
  323. MouseZoom.MaintainPivot = False
  324. ScrollBars.ShowHandleGrip = False
  325. ScrollBars.Style = rbsDefault
  326. ScrollBars.Size = 17
  327. ScrollBars.Visibility = svHidden
  328. SizeGrip = sgNone
  329. OverSize = 0
  330. TabOrder = 0
  331. OnMouseDown = Image32MouseDown
  332. OnMouseMove = ImgView32MouseMove
  333. OnMouseUp = Image32MouseUp
  334. end
  335. end
  336. end