header image
CrystalBallSoft Apps
CrystalBall Lite
CrystalBall
ThumbPrinter
To-Do Stickies
Other Apps
Miniaturizer
RealBasic Code
RPG Resources
City Generator
Who's Online
We have 23 guests online
Home arrow Apps arrow RealBasic Code arrow How to make a Custom Cursor in RB
How to make a Custom Cursor in RB PDF Print E-mail
Written by CrystalBallSoft Staff   
Mar 17, 2009 at 11:32 AM

This works on RB 2007r4 or later!

How to make a Custom Cursor for RealBasic:

  1. You will need a copy of the following apps:
    1. Rezilla ( http://www.versiontracker.com/dyn/moreinfo/macosx/23349 )
    2. exCURS ( http://software.tooloo.de/rb/exCURS.dmg )
  2. Open Rezilla to draw the cursor.
    1. Create a "New Resource Map" (Command N)
      1. Make sure you choose "Resource Fork" on the "New Resource Map" dialog!
      2. The Name you give the file will be the name of the RB Cursor Object!
    2. Make a new Resource. (Resources >> New Resource)
    3. Enter the Resource Type as: CURS
    4. Click "Create"
    5. Edit the Cursor Image.
    6. Save the Cursor Resource.
    7. Save the Resource Map File.
  3. Drag the Resource Map File onto "exCURS"
    1. This will create a folder called "xml-cursors" with a RB XML file for the cursor.
    2. This works around a bug where RB can't read the position of the hotspot in the cursor if its anywhere but the top-left corner.
      see: http://forums.realsoftware.com/viewtopic.php?f=7&t=25214
  4. Open the Project you wish to use the Cursor in.
    1. Drag the XML file made by exCURS into the RB project.
    2. You now have a custom cursor you can use!
      (eg: me.MouseCursor = CursorName)
NOTE: GRRR! there is a bug when using a cursor in RB2007+ when the hotspot is anywhere but the top left corner.
So you need to use exCURS if you want the hotspot anywhere else.