#832 – Creating a Cursor File

If you want to use a custom cursor in your application, you can create a .cur (static) or .ani (animated) cursor file using a cursor creation application.  You can then embed the resulting cursor file in your application and load it at run-time.

One good example of a cursor creation application is the RealWorld Cursor Editor, available as freeware.

The RealWorld Editor allows creating a cursor from scratch or creating a cursor based on an image.  Below, we convert an image of Cyrano de Bergerac into a cursor that we can then use as the mouse pointer.

We load the image into the application.

832-001

We flip the image horizontally, rotate it so that the nose points up and to the left, and then erase everything but the face.

832-002

Finally, we use the Create mouse cursor command.

832-003

The hotspot is set to the tip of the nose.

832-004

832-005

832-006

 

Voila!

832-007

832-008