Alit,

My Integrated Mapping skills are kind of rusty and my MapBasic reference is MIA, but I think I have an idea for you.

First you need to make sure the selected object is one you want to handle (you may want to ignore street segments for instance). Use SelectionInfo(SEL_INFO_TABLENAME) to find out the table that has the selection - Mapinfo can only select from one table at a time.

Next get the selected object(s) using Fetch Rec 1 from Selection.

Then you can pull the MBR for the object (MBR() function I think?) and calculate the necessary X,Y and Zoom and you are in business.

- Brad

At 05:41 PM 1/29/2003 -0800, Alit Sastrawan wrote:
Greetings,

I have built an integrated mapping using VB, I add a
button to my application and the function of that
button is: if I select an object then I click the
button, it will be automatically zoom in the object
selection fit to the map window automatically. Until
now I didn't find the way how to do it.

Any body could help me please? I really appreciate to
your attention. Thank you very much.

Regards,

Alit


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 5220
Brad Mathews
CTO, Cypress Technology Solutions, Inc.
www.CypressSolutions.com


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 5222

Reply via email to