Hi Christophe,

short and direct example not possible I think, but should know if you want
use this feature in your own application you should use "callback".
you can find detailed information in MapBasic's help - Integrated Mapping
section.
Note: to get continuously the mouse coordinates and to get coordinate of
clicked point is two different things.
In an integrated application MapInfo able to communicate to your application
through callback. E.g. MI continously able to send status text to your
application, from it you will able to pick-up actual coordinate and display
it on your form's statusbar for example.(As you move the cursor on map
coordinates will display in your form's statusbar)
On the same way when you click on a map MI send info (throught callback) to
your application which will/can include x,y clicked then you can pick them
up and display.

Hope this helps a bit

regards
George ('rugo')

VideoLogger+VisualTracker
http://web.axelero.hu/rugo100/vlt.htm




----- Original Message ----- 
From: "Christophe Brabant" <[EMAIL PROTECTED]>
To: "MapInfo Help" <[EMAIL PROTECTED]>
Sent: Tuesday, November 16, 2004 5:03 PM
Subject: MI-L Follow Mouse Coordinates with Mapbasic


Hi

I would like to display continuously the mouse coordinates, to know exactly
the cursor position when I click on a map.

At 06/21/2004, B. Thoen talked about XMouse tool, written by Robert Edwards
few years ago.

He specified too a list of Windows API used to do that, like ClientToScreen,
GetClientRect, GetCursorPos....

Does someone know more about that ?

Thank you - Chris



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

Reply via email to