home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 January / macformat-033.iso / mac / Shareware City / Developers / ABox.v1.8 / CPlus Files / ABUCursor.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-23  |  2.7 KB  |  113 lines  |  [TEXT/MMCC]

  1. /*    
  2.     Copyright © 1991-1995 by TopSoft Inc.  All rights reserved.
  3.  
  4.     You may distribute this file under the terms of the TopSoft
  5.     Artistic License, accompanying this package.
  6.     
  7.     This file was developed by George (ty) Tempel in connection with 
  8.     TopSoft, Inc. See the Modification History for more details.
  9.  
  10. Product
  11.     About Box
  12.  
  13. FILE
  14.     ABUCursor.c
  15.  
  16. NAME
  17.     ABUCursor.c, part of the ABox project source code,
  18.     this class is a mix-in for handling cursor switching
  19.  
  20. DESCRIPTION
  21.     This file is a mix-in for handling cursor switching.
  22.     
  23. DEVELOPED BY
  24.     George (ty) Tempel                netromancr@aol.com
  25.     All code in this file, and its associated header file was
  26.     Created by George (ty) Tempel in connection with the TopSoft, Inc.
  27.     "FilterTop" application development, except where noted.
  28.  
  29. CARETAKER - George (ty) Tempel <netromancr@aol.com>
  30.      Please consult this person for any changes or suggestions to this 
  31.      file.
  32.  
  33. MODIFICATION HISTORY
  34.  
  35.     dd mmm yy    -    xxx    -    patchxx: description of patch
  36.     28-july-94    -    ty    -    Initial Version Created and Released
  37.     23-may-95    -    ty    -    changes for compatibility with the CodeWarrior CW6
  38.                             release and the associated Universal Headers from Apple:
  39.                             most methods that returned references now have "Ref" at
  40.                             the end of their methods names to prevent possible collisions
  41.                             with datatypes and classes of the same name (older versions
  42.                             of the compiler didn't have a problem with this).
  43.  
  44. */
  45.  
  46. /*===========================================================================*/
  47.  
  48. /*======= Segmentation directives ========*/
  49.  
  50. #ifdef USE_MANUAL_SEGMENTATION
  51. #pragma segment ty
  52. #endif
  53.  
  54. /*============ Header files ==============*/
  55.     
  56. #include     "ABUCursor.h"
  57.  
  58. /*=============== Globals ================*/
  59.  
  60. /*================ CODE ==================*/
  61.  
  62.  
  63. /*=============================== ABUCursor::ABUCursor ================================*/
  64. ABUCursor::ABUCursor(void)
  65. {
  66. } // end ABUCursor
  67.  
  68.  
  69.  
  70. /*=============================== ABUCursor::~ABUCursor ================================*/
  71. ABUCursor::~ABUCursor(void)
  72. {
  73. } // end ~ABUCursor
  74.  
  75.  
  76.  
  77. /*=============================== ABUCursor::WatchCursor ===============================*/
  78. //
  79. //
  80. void    ABUCursor::WatchCursor (void)
  81. {
  82.  
  83.     Cursor        theWatch;            //    allocate a 68-byte struct
  84.     CursHandle    theWatchHandle;
  85.  
  86.     //    begin here...
  87.         
  88.     theWatchHandle = ::GetCursor( watchCursor );    //    constant in ToolboxUtil.h
  89.     if (theWatchHandle)
  90.     {
  91.         ::HLock ((Handle) theWatchHandle);
  92.         theWatch = **theWatchHandle;
  93.         ::HUnlock ((Handle) theWatchHandle);
  94.         ::SetCursor( &theWatch );
  95.     }
  96.  
  97. } // end WatchCursor
  98.  
  99.  
  100.  
  101.  
  102. /*=============================== ABUCursor::ArrowCursor ===============================*/
  103. //
  104. //
  105. void    ABUCursor::ArrowCursor (void)
  106. {
  107.     ::SetCursor( &(qd.arrow));
  108. } // end ArrowCursor
  109.  
  110.  
  111.  
  112.  
  113. //    end of file.