Solved

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

Posted on 2002-03-04
5
221 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Save pdf file to other location 3 79
Memory leak using records in a TVirtualStringTree 11 108
Delphi XE2 application frozen on Windows 10 10 266
Convert a string into a TDateTime 5 50
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

939 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now