Hi Paul,

Check out MapBasic Help for SEARCHINFO.  They have a sample there that
clicks on a point and gets Lat/Long [CommandInfo()].  When the user selects
the tool on the dialog, you need to close the dialog down.  When the
selection is made, bring the dialog back and re-populate it with the same
data that was there before it was closed (i.e. remember what was there).

Hope that this helps,
Mark Crompton

-----Original Message-----
From: Paul Fildes [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 22, 1999 7:11 AM
To: MapInfo List
Subject: MI: Getting Co-ordinates


Dear all,

Using MapBasic I have created an application for adding/editing/deleting map
data. For adding and editing data I have provided a dialog which prompts the
user for the relevant table information including a co-ordinate set (X,Y).
If the user doesn't know the exact location, then I have been asked to
provide a button which the user can click, and take them to the map window
containing the table, and extract the co-ordinates from the map.

So far the button in my dialog is defined as having a handler routine which
it calls. Its in this routine where I have already been able to determine
the MapWindowID for the first instance of the table, and set it as the front
window. 

Can you please advise me how I might achieve the rest of the above?. How do
I switch back to the map window, recognise a mouse click on the map, and
then refer back to my dialog?.

Regards,

Paul Fildes                                   Phone: +44 121 643 6711
Technology Applications Group, Maunsell Ltd,  Fax:   +44 121 643 1357
Attwood House, 1 Worcester Walk,              Email: [EMAIL PROTECTED]
New Street, Birmingham B2 4NX, UK             URL:   www.maunsell.co.uk
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [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