home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Goodies / Development Tools / Utilities / Resource Finder / custom cursors! next >
Encoding:
Text File  |  1999-05-17  |  881 b   |  12 lines

  1. Use Resource Finder to locate all the custom CURS resources on your hard drive.  Then check out the results in ResEdit or Resourceror, and find some cool cursors.
  2.  
  3. To use cursors, make a copy of the CURSs file and delete out all the ones you don't need.  Then rename the file "Resources" and drag it into your project window. (be sure to keep the Resources file, the icon in your project is only a link to your actual Resources file)  To see a cursor, inside a window do a:
  4.  
  5. self.MouseCursor=App.ResourceFork.GetCursor(1500)
  6.  
  7. The above example will load up and activate cursor #1500.  To animate it, you will need to use a timer to increment a counter and change the cursor at set intervals.
  8. Depending on your version of REALbasic, you may need to re-set the cursor whenever it is moved, so think about putting the above command in the MouseMoved event of the window.
  9.  
  10. - Virtual1
  11.  
  12.