home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Magazine 28 Bonus / CDRomMagazine-SoftKey-ArtPassion-FrenchVersion-Win31Mac.bin / data / shared.dir / 03015_Script_CURSORS < prev    next >
Text File  |  1996-06-21  |  1KB  |  31 lines

  1. -- -----------------------------------------------------------
  2. -- Handler defineCursor define cursors that can be used
  3. -- for both PCs and MACs
  4.  
  5. on defineCursors
  6.   global fingerCursor, upCursor, downCursor, rightCursor, leftCursor, magnifyCursor,moveCursor, twoFingerCursor, cropCursor
  7.   
  8.   set fingerCursor = [the number of cast "fingerCursor", the number of cast "fingerMask"]
  9.   set upCursor = [the number of cast "upCursor", the number of cast "upMask"]
  10.   set downCursor = [the number of cast "downCursor", the number of cast "downMask"]
  11.   set rightCursor = [the number of cast "rightCursor", the number of cast "rightMask"]
  12.   set leftCursor = [the number of cast "leftCursor", the number of cast "leftMask"]
  13.   set magnifyCursor = [the number of cast "magnifyCursor", the number of cast "magnifyMask"]
  14.   set twoFingerCursor = [the number of cast "twoFingerCursor", the number of cast "twoFingerMask"]
  15.   set moveCursor = [the number of cast "moveCursor", the number of cast "moveMask"]
  16.    set cropCursor = [the number of cast "cropCursor", the number of cast "cropMask"]
  17. end
  18.  
  19. -- -----------------------------------------------------------
  20. -- Handler watchCursor sets the cursor to a watch.
  21.  
  22. on watchCursor
  23.   cursor 4
  24. end
  25.  
  26. -- -----------------------------------------------------------
  27. -- Handler normalCursor sets the cursor to the default arrow.
  28.  
  29. on normalCursor
  30.   cursor -1
  31. end