Paul,

You can do a number of things.  If you want to plot a point in your
front window, you can issue the MB command 

Create Point Into Window FrontWindow() (-122, 47.5)

where -120, 44 are example X & Y coordinates.  Note that this will
create a point in whatever table is marked 'editable'.  If you don't
want to edit any tables, set the cosmetic layer editable.  You can also
append this statement with a 'Style' clause (you may want to read up on
that).  

To Zoom or recenter your window, you can issue the command

Set Map Window FrontWindow() Center (-122,47.5) Zoom 200 "km"

Note that the Center.. and Zoom.. clauses are optional, so you can set
one but not the other if you choose.  You may want to learn about the
WindowInfo() method, which allows you to get things like the window
handle.  You can use the handle in place of FrontWindow().

Hope this helps!

- Tom
        **********************************
          Tom A. White, GIS Programmer / Analyst
          Schlosser Geographic Systems, Inc.
        http://www.sgsi.com  [EMAIL PROTECTED]
         Two Union Sq. 601 Union St. Seattle, WA 98101 USA
         (206) 224 - 0800   fax: (206) 467 - 0458



>----------
>From:  Brown Paul[SMTP:[EMAIL PROTECTED]]
>Sent:  Wednesday, October 20, 1999 7:01 AM
>To:    'Mapinfo List'
>Subject:       MI simulated Click
>
><<File: ATT00017.html.htm>>
>Dear MI-L
>
>Does anyone know if there is a way of simulating a click on a map through
>MapBasic?  For example if I have the coords of the point I want to click on,
>is there a way to click it without physically doing so? something like
>Create Point would be useful.
>
>Will sum.
>
>Thanks
>
>Paul.
>
>Paul Brown
>GIS Development Officer
>Avon Health Authority
>
>Tel:  0117 9002490
>Fax: 0117 9766601
>mailto:[EMAIL PROTECTED]
>
>
>
>
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to