thanks
tom
--
Check out my groovy website!!!
http://www.dreamscape.com/tasocors
There's a MacOS function called GetMouse() which will do this for you.
This will give you the screen coordinates of the mouse cursor. If you
want them relative to a window, you will need to use the GlobalToLocal
function to convert the coordinates.
-->Steve Bennett
Declare a point variable:
Point MouseLocation;
Read the mouse location into MouseLocation:
GetMouse(&MouseLocation);
Now you find the horizontal and vertical mouse location
in MouseLocation.h and MouseLocation.v
Johan Halmen
One thing: GetMouse() returns the mouse coordinates in the *local*
coordinates of the current grafport - so to get to screen coordinates you
need to use LocalToGlobal() (followed by SetPort()/SetGWorld() and
GlobalToLocal() to convert it to the local coordinates of another port).
--
<http://www.zip.com.au/~magao/standard_disclaimer.html>
_/_/_/_/
__| __| _/_| _/_/_/ _/_| _/_/_/
_/_| _/_| _/ _| _/ _/ _| _/ _/
-/ _|_/ _| _/_/_/_| _/ _/_/_/ _/_/_/_| _/ _/
_/ __/ _| _/ _| _/_/_/ _/ _| _/_/_/
Tim Delaney ma...@zip.com.au
Mac/Windows SW Engineer, Bold ma...@bold.com.au