Thread: Saving Cursors?
View Single Post
Old 01-06-2001, 07:59 PM
douglas douglas is offline
Senior Member
Join Date: Jul 2001
Posts: 7,695
Default RE: Saving Cursors?

Goto Tools | Image Editor --> File | New --> Cursor File

The following is out of the Delphi 5 Help File: Example:

This example shows how to add custom cursors to an application. It assumes that a custom cursor with the name NewCursor has been added to the resources (.RES file) of the application. You can add the cursor using the image editor. (Tools | Image Editor)
The following code makes this cursor available to the application via the constant crMyCursor, and sets it as the global cursor to the application.


crMyCursor = 5;
procedure TForm1.FormCreate(Sender: TObject);
Screen.Cursors[crMyCursor] := LoadCursor(HInstance, 'NewCursor');
Cursor := crMyCursor;

If you need further help, just write.
Reply With Quote