SetCursor to arrow

SetCursor to arrow

Post by Barbara Fr » Sun, 02 Nov 2003 00:11:49


Hello fellow programmers!

I am trying to carbonize my Classic application (in C with CW8.3). My
old code used "SetCursor(&qd.arrow);" to return to the regular system
arrow cursor but now I get "Error: Undefined identifier 'qd'" and I
can't seem to find what the replacement should be.

Thanks in advance, because I'm sure somebody knows this answer!!
 
 
 

SetCursor to arrow

Post by James W. W » Sun, 02 Nov 2003 02:22:55

In article < XXXX@XXXXX.COM >,



The easy way to set the cursor to an arrow has always been to call
InitCursor(), even before Carbon. However, there are now accessor
functions for things that used to involve the global qd structure, such
as GetQDGlobalsArrow.

 
 
 

SetCursor to arrow

Post by Barbara Fr » Sun, 02 Nov 2003 02:31:02

In article <311020030922548181% XXXX@XXXXX.COM >,




But would you call InitCursor() every time you want to return to the
arrow cursor from the watch cursor for instance? Somehow the name would
suggest using it once only!

Thanks for the info on QDGlobals!
 
 
 

SetCursor to arrow

Post by James W. W » Sun, 02 Nov 2003 10:58:44

In article < XXXX@XXXXX.COM >,



Yes, it's safe to call InitCursor whenever you like.
 
 
 

SetCursor to arrow

Post by Steven Fis » Sun, 02 Nov 2003 11:47:51

In article <311020031758433932% XXXX@XXXXX.COM >,




The only thing to watch out for is that it will undo all HideCursor()
calls. Whether you consider this a bad or good thing depends on your
code...
 
 
 

SetCursor to arrow

Post by David Phil » Sun, 02 Nov 2003 14:08:58

In article < XXXX@XXXXX.COM >,



Look in Quickdraw.h. Search for a routine containing "Arrow".