Recent

Author Topic: Move picture in TImage  (Read 6638 times)

MaartenJB

  • Full Member
  • ***
  • Posts: 119
Move picture in TImage
« on: June 25, 2011, 09:45:39 am »
Hi,

If you load a picture in TImage, set Proportional and Stretch to False, and the picture size (width and height) is bigger then the timage canvas, then you see just a portion of that picture. Is it possible to tell the timage to move the picture to for example the left, so you will see an other portion of the picture?
TImage contains the property "Center", witch shows the center part of the picture instead of the upper left corner. So it is able to "move" the image.

Thanks in advance.


theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
Re: Move picture in TImage
« Reply #1 on: June 25, 2011, 10:02:16 am »
Put the TImage inside a TScrollBox.

MaartenJB

  • Full Member
  • ***
  • Posts: 119
Re: Move picture in TImage
« Reply #2 on: June 25, 2011, 11:37:56 am »
Thanks Theo, it works! :D

 

TinyPortal © 2005-2018