Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!caen.engin.umich.edu!sol.engin.umich.edu!mystone From: mystone@sol.engin.umich.edu (Dean (The Mysterious One) Yu) Newsgroups: comp.sys.mac.programmer Subject: Quickdraw global access in LSP 2.0? Message-ID: <41565bdb.a590@mag.engin.umich.edu> Date: 7 Feb 89 21:18:00 GMT Sender: netnews@caen.engin.umich.edu Reply-To: mystone@sol.engin.umich.edu (Dean (The Mysterious One) Yu) Organization: Computer Aided Engineering Network, University of Michigan Lines: 29 I'm writing a program for a class, and I want to change the cursor depending on where the mouse is. If it's in a window, I want the cross cursor. If it's somewhere else, I want the arrow cursor. Theoretically speaking, it should be no problem. I've done similar things before in MPW and Turbo Pascal. Do a GetMouse, and depending on the point, do a SetCursor(crsr), and so on. My problem is that LightSpeed Pascal 2.0 won't let me access the QuickDraw global arrow. I do a SetCursor(arrow); and it gives me a type incompatibility, or something along that line. I thought THINK might have made it into a CursHandle, and tried dereferncing it, and it comes back with 'Too many ^...'. I've looked all over the manual, and it doesn't say a thing about it. I've resorted to making my own arrow CURS resource, but it seems silly to have to do that when it's already done for me. Anyone know what I'm doing wrong, or how to work around it? Many thanks. ______________________________________________________________________________ Dean Yu | E-mail: mystone@caen.engin.umich.edu University of Michigan | Real-mail: Dean Yu Computer Aided Engineering Network | 2413 Kelsey House ===================================| 600 E Madison "These are MY opinions." (My | Ann Arbor, MI 48109 employer doesn't want them. |========================================== Actually, they don't really care | what I think. But President | This space intentionally left blank. Duderstadt does...) | ------------------------------------------------------------------------------