OK, got it. You can't use the application resource file. I created another resource
file called cursors.res, linked it in {$R Cursors.res}, and away it went.
Bizaar.
-----Original Message-----
From: Todd Martin [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 June 2003 12:29 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Application Specific Cursors
Good question. I tried the same thing without success also. So I'm
interested in the solution too.
Todd.
----- Original Message -----
From: "David O'Brien" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 12:14 PM
Subject: [DUG]: Application Specific Cursors
I have created a cursor in an application resource file using the Image
Editor, as per the help.
const
crMyCursor = 5 ;
Screen.Cursors[crMyCursor] := LoadCursor(HInstance, 'SIGHTCURSOR');
But this always returns 0.
Any ideas why this doesn't work?
Cheers,
Dave.
Sorry I have no comments to make about AV.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/