ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to show an object in the center
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndyColmes

USA
351 Posts

Posted - Sep 27 2012 :  09:39:57  Show Profile  Reply
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

w2m

USA
1990 Posts

Posted - Sep 27 2012 :  12:29:53  Show Profile  Reply
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
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - Sep 28 2012 :  01:24:45  Show Profile  Reply
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
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 28 2012 :  06:21:56  Show Profile  Reply
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
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - Oct 02 2012 :  09:02:27  Show Profile  Reply
That's correct. I was able to work it out with the ExtentX and ExtentY values.

Thanks anyway.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: