|
How to make a Custom Cursor in RB |
|
|
|
|
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: - You will need a copy of the following apps:
- Rezilla ( http://www.versiontracker.com/dyn/moreinfo/macosx/23349 )
- exCURS ( http://software.tooloo.de/rb/exCURS.dmg )
- Open Rezilla to draw the cursor.
- Create a "New Resource Map" (Command N)
- Make sure you choose "Resource Fork" on the "New Resource Map" dialog!
- The Name you give the file will be the name of the RB Cursor Object!
- Make a new Resource. (Resources >> New Resource)
- Enter the Resource Type as: CURS
- Click "Create"
- Edit the Cursor Image.
- Save the Cursor Resource.
- Save the Resource Map File.
- Drag the Resource Map File onto "exCURS"
- This will create a folder called "xml-cursors" with a RB XML file for the cursor.
- 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
- Open the Project you wish to use the Cursor in.
- Drag the XML file made by exCURS into the RB project.
- 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.
|