MainUnit.dfm 13 KB

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