Solved

qow 9: how to load an animated mousecursor from resource?

Posted on 2002-03-04
5
222 Views
Last Modified: 2010-04-05
hi experts,

i am starting a new quest: qow = question of the week :-)
each week i will introduce a new simple? question.

now qow 9

the first working solution will get the points (a graded).

sorry, top 15 experts, you are not allowed to solve this
q, only other can solve this question :-(

well the question is:
how to load an animated mousecursor from resource?
let see


meikl ;-)
0
Comment
Question by:kretzschmar
  • 4
5 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 6838880
procedure TForm1.FormCreate(Sender: TObject);
 const NewCursor = 1;
begin
 Screen.Cursors[NewCursor] :=
    LoadCursor(hInstance,'BANANA');
 Cursor := NewCursor;
end;

0
 
LVL 9

Expert Comment

by:ginsonic
ID: 6838888
Or better :

{$R banana.res}

procedure TForm1.FormCreate(Sender: TObject);
const NewCursor = 1;
begin
 Screen.Cursors[NewCursor] := LoadCursor(hInstance,'BANANA');
 Screen.Cursor := NewCursor;

end;
0
 
LVL 9

Accepted Solution

by:
ginsonic earned 25 total points
ID: 6838952
A very good sample can be found at:

http://www.howtodothings.com/showarticle.asp?article=288

Because is copyrighted I put just the link .
And I think that isn't over the rules of qoe ( no restriction about alike solutions ).
0
 
LVL 27

Author Comment

by:kretzschmar
ID: 6839544
yep, thats it
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 6840861
Maybe is better to wait , I repeat myself, the better solution and not the first working one .

I participate to this contest to learn more, not for points, but THANKS.

Best regards,
Nick

P.S. Damn I lose previous questions :)
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to convert wav to mp3 in delphi 9 198
Path  to current project in Delphi. 2 79
delphi exception 7 64
Communication Between RC4 Delphi <-> PHP 3 113
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question