T O P I C R E V I E W |
AndyColmes |
Posted - Sep 27 2012 : 09:39:57 I have a large image that is in a TImageEnView with lots of rectangle objects that I pan around with scrollbars. I would like to auto scroll and bring the X1,Y1 of the selected object in the center of the TImageEnView (I retrieve the object coordinates from a stringgrid).
I would appreciate any help on how to do this.
Thanks very much.
Andy |
4 L A T E S T R E P L I E S (Newest First) |
AndyColmes |
Posted - Oct 02 2012 : 09:02:27 That's correct. I was able to work it out with the ExtentX and ExtentY values.
Thanks anyway. |
w2m |
Posted - Sep 28 2012 : 06:21:56 Do you mean if the ImageEnVect is zoomed the rectangle object is not visible so you want to always have the object visible regardless of the zoom?
William Miller |
AndyColmes |
Posted - Sep 28 2012 : 01:24:45 Sorry William. Correction: I have the rectangle objects in a TImageEnVect. I would like to always show the object in the view (TImageEnVect Window) regardless of where the object is on the image. So, if the object is at the bottom of the image and since the TImageEnVect is showing the image at 100% or larger zoom, then I would like to "autoscroll" the TImageEnVect to bring the object to the center of the view window. I hope I make sense.
Thanks for any help in advance.
Andy |
w2m |
Posted - Sep 27 2012 : 12:29:53 Please provide more information. Is the "object" in a layer? When do you want to place the selected object in the center? What do you mean auto scroll?
William Miller Adirondack Software & Graphics Email: w2m@frontiernet.net EBook: http://www.imageen.com/ebook/ Apprehend: http://www.frontiernet.net/~w2m/index.html |