MainUnit.dfm 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. object MainForm: TMainForm
  2. Left = 255
  3. Top = 121
  4. Caption = 'Image View Layers Example'
  5. ClientHeight = 590
  6. ClientWidth = 787
  7. Color = clBtnFace
  8. ParentFont = True
  9. Menu = MainMenu
  10. OnCreate = FormCreate
  11. OnDestroy = FormDestroy
  12. TextHeight = 15
  13. object ImgView: TImgView32
  14. Left = 0
  15. Top = 0
  16. Width = 656
  17. Height = 590
  18. Align = alClient
  19. Bitmap.DrawMode = dmBlend
  20. Bitmap.ResamplerClassName = 'TNearestResampler'
  21. BitmapAlign = baCustom
  22. Scale = 1.000000000000000000
  23. ScaleMode = smScale
  24. ScrollBars.ShowHandleGrip = True
  25. ScrollBars.Style = rbsDefault
  26. ScrollBars.Size = 16
  27. SizeGrip = sgNone
  28. OverSize = 20
  29. TabOrder = 0
  30. TabStop = True
  31. OnKeyDown = ImgViewKeyDown
  32. OnMouseDown = ImgViewMouseDown
  33. end
  34. object PnlControl: TPanel
  35. Left = 656
  36. Top = 0
  37. Width = 131
  38. Height = 590
  39. Align = alRight
  40. BevelOuter = bvNone
  41. TabOrder = 1
  42. object PnlImage: TPanel
  43. Left = 0
  44. Top = 0
  45. Width = 131
  46. Height = 77
  47. Align = alTop
  48. TabOrder = 0
  49. Visible = False
  50. object PnlImageHeader: TPanel
  51. Left = 1
  52. Top = 1
  53. Width = 129
  54. Height = 16
  55. Align = alTop
  56. BevelOuter = bvNone
  57. Caption = 'Image Properties'
  58. Color = 10178048
  59. Font.Charset = DEFAULT_CHARSET
  60. Font.Color = clWhite
  61. Font.Height = -11
  62. Font.Name = 'Segoe UI'
  63. Font.Style = []
  64. ParentBackground = False
  65. ParentFont = False
  66. TabOrder = 0
  67. end
  68. object CbxImageInterpolate: TCheckBox
  69. Left = 16
  70. Top = 23
  71. Width = 97
  72. Height = 17
  73. Caption = 'Interpolated'
  74. TabOrder = 1
  75. OnClick = CbxImageInterpolateClick
  76. end
  77. object CbxOptRedraw: TCheckBox
  78. Left = 16
  79. Top = 47
  80. Width = 105
  81. Height = 17
  82. Caption = 'Optimize Repaints'
  83. Checked = True
  84. State = cbChecked
  85. TabOrder = 2
  86. OnClick = CbxOptRedrawClick
  87. end
  88. end
  89. object PnlBitmapLayer: TPanel
  90. Left = 0
  91. Top = 77
  92. Width = 131
  93. Height = 168
  94. Align = alTop
  95. TabOrder = 1
  96. Visible = False
  97. object LblOpacity: TLabel
  98. Left = 8
  99. Top = 24
  100. Width = 44
  101. Height = 15
  102. Caption = 'Opacity:'
  103. end
  104. object PnlBitmapLayerHeader: TPanel
  105. Left = 1
  106. Top = 1
  107. Width = 129
  108. Height = 16
  109. Align = alTop
  110. BevelOuter = bvNone
  111. Caption = 'Bitmap Layer Properties'
  112. Color = 10178048
  113. Font.Charset = DEFAULT_CHARSET
  114. Font.Color = clWhite
  115. Font.Height = -11
  116. Font.Name = 'Segoe UI'
  117. Font.Style = []
  118. ParentBackground = False
  119. ParentFont = False
  120. TabOrder = 0
  121. end
  122. object GbrLayerOpacity: TGaugeBar
  123. Left = 16
  124. Top = 40
  125. Width = 105
  126. Height = 12
  127. Backgnd = bgPattern
  128. HandleSize = 16
  129. Max = 255
  130. ShowArrows = False
  131. ShowHandleGrip = True
  132. Style = rbsMac
  133. Position = 255
  134. OnChange = LayerOpacityChanged
  135. end
  136. object CbxLayerInterpolate: TCheckBox
  137. Left = 16
  138. Top = 64
  139. Width = 97
  140. Height = 17
  141. Caption = '&Interpolated'
  142. TabOrder = 2
  143. OnClick = CbxLayerInterpolateClick
  144. end
  145. object BtnLayerRescale: TButton
  146. Left = 16
  147. Top = 112
  148. Width = 105
  149. Height = 17
  150. Caption = 'Rescale'
  151. TabOrder = 3
  152. OnClick = BtnLayerRescaleClick
  153. end
  154. object BtnLayerResetScale: TButton
  155. Left = 16
  156. Top = 136
  157. Width = 105
  158. Height = 17
  159. Caption = 'Scale to 100%'
  160. TabOrder = 4
  161. OnClick = BtnLayerResetScaleClick
  162. end
  163. object CbxCropped: TCheckBox
  164. Left = 16
  165. Top = 88
  166. Width = 97
  167. Height = 17
  168. Caption = '&Cropped'
  169. TabOrder = 5
  170. OnClick = CbxCroppedClick
  171. end
  172. end
  173. object PnlMagnification: TPanel
  174. Left = 0
  175. Top = 355
  176. Width = 131
  177. Height = 168
  178. Align = alTop
  179. TabOrder = 2
  180. Visible = False
  181. object LblMagifierOpacity: TLabel
  182. Left = 8
  183. Top = 24
  184. Width = 44
  185. Height = 15
  186. Caption = 'Opacity:'
  187. end
  188. object LblMagnification: TLabel
  189. Left = 8
  190. Top = 64
  191. Width = 77
  192. Height = 15
  193. Caption = 'Magnification:'
  194. end
  195. object LblRotation: TLabel
  196. Left = 8
  197. Top = 104
  198. Width = 48
  199. Height = 15
  200. Caption = 'Rotation:'
  201. end
  202. object PnlMagnificationHeader: TPanel
  203. Left = 1
  204. Top = 1
  205. Width = 129
  206. Height = 16
  207. Align = alTop
  208. BevelOuter = bvNone
  209. Caption = 'Magnifier (All) Properties'
  210. Color = 10178048
  211. Font.Charset = DEFAULT_CHARSET
  212. Font.Color = clWhite
  213. Font.Height = -11
  214. Font.Name = 'Segoe UI'
  215. Font.Style = []
  216. ParentBackground = False
  217. ParentFont = False
  218. TabOrder = 0
  219. end
  220. object GbrMagnOpacity: TGaugeBar
  221. Left = 16
  222. Top = 40
  223. Width = 105
  224. Height = 12
  225. Backgnd = bgPattern
  226. HandleSize = 16
  227. Max = 255
  228. ShowArrows = False
  229. ShowHandleGrip = True
  230. Style = rbsMac
  231. Position = 255
  232. OnChange = PropertyChange
  233. end
  234. object GbrMagnMagnification: TGaugeBar
  235. Left = 16
  236. Top = 80
  237. Width = 105
  238. Height = 12
  239. Backgnd = bgPattern
  240. HandleSize = 16
  241. Max = 50
  242. ShowArrows = False
  243. ShowHandleGrip = True
  244. Style = rbsMac
  245. Position = 10
  246. OnChange = PropertyChange
  247. end
  248. object GbrMagnRotation: TGaugeBar
  249. Left = 16
  250. Top = 120
  251. Width = 105
  252. Height = 12
  253. Backgnd = bgPattern
  254. HandleSize = 16
  255. Max = 180
  256. Min = -180
  257. ShowArrows = False
  258. ShowHandleGrip = True
  259. Style = rbsMac
  260. Position = 0
  261. OnChange = PropertyChange
  262. end
  263. object CbxMagnInterpolate: TCheckBox
  264. Left = 16
  265. Top = 144
  266. Width = 97
  267. Height = 17
  268. Caption = 'Interpolated'
  269. TabOrder = 4
  270. OnClick = PropertyChange
  271. end
  272. end
  273. object PnlButtonMockup: TPanel
  274. Left = 0
  275. Top = 245
  276. Width = 131
  277. Height = 110
  278. Align = alTop
  279. TabOrder = 3
  280. Visible = False
  281. object LblBorderRadius: TLabel
  282. Left = 8
  283. Top = 24
  284. Width = 76
  285. Height = 15
  286. Caption = 'Border Radius:'
  287. end
  288. object LblBorderWidth: TLabel
  289. Left = 8
  290. Top = 64
  291. Width = 73
  292. Height = 15
  293. Caption = 'Border Width:'
  294. end
  295. object PnlButtonMockupHeader: TPanel
  296. Left = 1
  297. Top = 1
  298. Width = 129
  299. Height = 16
  300. Align = alTop
  301. BevelOuter = bvNone
  302. Caption = 'Button (All) Properties'
  303. Color = 10178048
  304. Font.Charset = DEFAULT_CHARSET
  305. Font.Color = clWhite
  306. Font.Height = -11
  307. Font.Name = 'Segoe UI'
  308. Font.Style = []
  309. ParentBackground = False
  310. ParentFont = False
  311. TabOrder = 0
  312. end
  313. object GbrBorderRadius: TGaugeBar
  314. Left = 16
  315. Top = 40
  316. Width = 105
  317. Height = 12
  318. Backgnd = bgPattern
  319. HandleSize = 16
  320. Max = 20
  321. Min = 1
  322. ShowArrows = False
  323. ShowHandleGrip = True
  324. Style = rbsMac
  325. Position = 5
  326. OnChange = PropertyChange
  327. end
  328. object GbrBorderWidth: TGaugeBar
  329. Left = 16
  330. Top = 80
  331. Width = 105
  332. Height = 12
  333. Backgnd = bgPattern
  334. HandleSize = 16
  335. Max = 30
  336. Min = 10
  337. ShowArrows = False
  338. ShowHandleGrip = True
  339. Style = rbsMac
  340. Position = 20
  341. OnChange = PropertyChange
  342. end
  343. end
  344. end
  345. object MainMenu: TMainMenu
  346. Left = 64
  347. Top = 8
  348. object MnuFile: TMenuItem
  349. Caption = 'File'
  350. OnClick = MnuFileClick
  351. object MnuFileNew: TMenuItem
  352. Caption = 'New...'
  353. OnClick = MnuFileNewClick
  354. end
  355. object MnuFileOpen: TMenuItem
  356. Caption = 'Open...'
  357. OnClick = MnuFileOpenClick
  358. end
  359. object Saveas1: TMenuItem
  360. Action = ActionSave
  361. end
  362. object N6: TMenuItem
  363. Caption = '-'
  364. end
  365. object MnuPrint: TMenuItem
  366. Caption = 'Print'
  367. OnClick = MnuPrintClick
  368. end
  369. end
  370. object MenuItemEdit: TMenuItem
  371. Caption = 'Edit'
  372. object MenuItemCopy: TMenuItem
  373. Action = ActionCopy
  374. end
  375. object MenuItemPasteNew: TMenuItem
  376. Action = ActionPasteNew
  377. end
  378. object MenuItemPasteInto: TMenuItem
  379. Action = ActionPasteInto
  380. end
  381. end
  382. object MnuLayers: TMenuItem
  383. Caption = 'Layers'
  384. OnClick = MnuLayersClick
  385. object MnuNewBitmapLayer: TMenuItem
  386. Caption = 'New Bitmap Layer...'
  387. OnClick = MnuNewBitmapLayerClick
  388. end
  389. object MnuNewBitmapRGBA: TMenuItem
  390. Caption = 'New Bitmap Layer with Alpha Channel...'
  391. OnClick = MnuNewBitmapRGBAClick
  392. end
  393. object MnuNewCustomLayer: TMenuItem
  394. Caption = 'New Custom Layer'
  395. object MnuSimpleDrawing: TMenuItem
  396. Caption = 'Simple Drawing Layer'
  397. OnClick = MnuSimpleDrawingClick
  398. end
  399. object MnuButtonMockup: TMenuItem
  400. Caption = 'Button Mockup'
  401. OnClick = MnuButtonMockupClick
  402. end
  403. object MnuMagnifier: TMenuItem
  404. Caption = 'Magnifier'
  405. OnClick = MnuMagnifierClick
  406. end
  407. end
  408. object N4: TMenuItem
  409. Caption = '-'
  410. end
  411. object MnuFlatten: TMenuItem
  412. Caption = 'Flatten Layers'
  413. OnClick = MnuFlattenClick
  414. end
  415. end
  416. object MimArrange: TMenuItem
  417. Caption = 'Selection'
  418. OnClick = MimArrangeClick
  419. object MnuBringFront: TMenuItem
  420. Tag = 1
  421. Caption = 'Bring to Front'
  422. OnClick = MnuReorderClick
  423. end
  424. object MnuSendBack: TMenuItem
  425. Tag = 2
  426. Caption = 'Send to Back'
  427. OnClick = MnuReorderClick
  428. end
  429. object N1: TMenuItem
  430. Caption = '-'
  431. OnClick = MnuReorderClick
  432. end
  433. object MnuLevelUp: TMenuItem
  434. Tag = 3
  435. Caption = 'Up One Level'
  436. OnClick = MnuReorderClick
  437. end
  438. object MnuLevelDown: TMenuItem
  439. Tag = 4
  440. Caption = 'Down one Level'
  441. OnClick = MnuReorderClick
  442. end
  443. object N7: TMenuItem
  444. Caption = '-'
  445. end
  446. object MnuScaled: TMenuItem
  447. Caption = 'Scaled'
  448. Checked = True
  449. OnClick = MnuScaledClick
  450. end
  451. object N3: TMenuItem
  452. Caption = '-'
  453. end
  454. object MnuFlipHorz: TMenuItem
  455. Caption = 'Flip Horizontally'
  456. OnClick = MnuFlipHorzClick
  457. end
  458. object MnuFlipVert: TMenuItem
  459. Caption = 'Flip Vertically'
  460. OnClick = MnuFlipVertClick
  461. end
  462. object N5: TMenuItem
  463. Caption = '-'
  464. end
  465. object MnuRotate90: TMenuItem
  466. Caption = 'Rotate 90'
  467. OnClick = MnuRotate90Click
  468. end
  469. object MnuRotate180: TMenuItem
  470. Caption = 'Rotate 180'
  471. OnClick = MnuRotate180Click
  472. end
  473. object MnuRotate270: TMenuItem
  474. Caption = 'Rotate 270'
  475. OnClick = MnuRotate270Click
  476. end
  477. object N2: TMenuItem
  478. Caption = '-'
  479. end
  480. object MnuDelete: TMenuItem
  481. Caption = 'Delete'
  482. OnClick = MnuDeleteClick
  483. end
  484. end
  485. end
  486. object OpenDialog: TOpenDialog
  487. Filter =
  488. 'All (*.tga;*.dds;*.dib;*.tif;*.gif;*.png;*.png;*.gif;*.png;*.jpg' +
  489. ';*.jpeg;*.bmp;*.tif;*.tiff;*.ico;*.emf;*.wmf)|*.tga;*.dds;*.dib;' +
  490. '*.tif;*.gif;*.png;*.png;*.gif;*.png;*.jpg;*.jpeg;*.bmp;*.tif;*.t' +
  491. 'iff;*.ico;*.emf;*.wmf|Targa (*.tga)|*.tga|Microsoft DirectDraw S' +
  492. 'urface (*.dds)|*.dds|Device Independent Bitmap (*.dib)|*.dib|All' +
  493. ' graphics (*.tif;*.gif;*.png)|*.tif;*.gif;*.png|PNG graphics fro' +
  494. 'm DevExpress (*.png)|*.png|GIF Image (*.gif)|*.gif|Portable Netw' +
  495. 'ork Graphics (*.png)|*.png|JPEG Image File (*.jpg)|*.jpg|JPEG Im' +
  496. 'age File (*.jpeg)|*.jpeg|Bitmaps (*.bmp)|*.bmp|TIFF Images (*.ti' +
  497. 'f)|*.tif|TIFF Images (*.tiff)|*.tiff|Icons (*.ico)|*.ico|Enhance' +
  498. 'd Metafiles (*.emf)|*.emf|Metafiles (*.wmf)|*.wmf'
  499. Left = 64
  500. Top = 56
  501. end
  502. object SaveDialog: TSaveDialog
  503. Options = [ofOverwritePrompt, ofHideReadOnly, ofEnableSizing]
  504. Left = 64
  505. Top = 104
  506. end
  507. object ActionList: TActionList
  508. Left = 240
  509. Top = 180
  510. object ActionCopy: TAction
  511. Caption = 'Copy'
  512. ShortCut = 16451
  513. OnExecute = ActionCopyExecute
  514. OnUpdate = ActionCopyUpdate
  515. end
  516. object ActionPasteNew: TAction
  517. Caption = 'Paste as new layer'
  518. ShortCut = 16470
  519. OnExecute = ActionPasteNewExecute
  520. OnUpdate = ActionPasteNewUpdate
  521. end
  522. object ActionPasteInto: TAction
  523. Caption = 'Paste into selection'
  524. ShortCut = 24662
  525. OnExecute = ActionPasteIntoExecute
  526. OnUpdate = ActionPasteIntoUpdate
  527. end
  528. object ActionSave: TAction
  529. Caption = 'Save as...'
  530. OnExecute = ActionSaveExecute
  531. end
  532. end
  533. object TimerMarchingAnts: TTimer
  534. Interval = 50
  535. OnTimer = TimerMarchingAntsTimer
  536. Left = 388
  537. Top = 312
  538. end
  539. end