Solved

Adding files to *.res

Posted on 1998-11-22
2
164 Views
Last Modified: 2010-04-04
How can I add mouse cursors to my project's resource file???
0
Comment
Question by:jack_p50
2 Comments
 
LVL 4

Accepted Solution

by:
davidmwilliams earned 20 total points
ID: 1347570
 Do it using the Image Editor that installs with Delphi, or even create a new .res file - and then specify a {$R new.res} directive in one of your .pas files (where the new.res should be the appropriate filename).
  Then, load the cursors in your .pas code, like so -

Screen.Cursors [kFill] := LoadCursor (HInstance, 'FILL');

  where kFill is an example of a constant value to index into the cursors array, and where 'FILL' is an example of the name of a cursor (as specified in the Image Editor).

  Then, you can just say Screen.Cursor := kFill;  at any time in your program (replacing the constant with whatever value is appropriate for you).
0
 
LVL 4

Author Comment

by:jack_p50
ID: 1347571
THX
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
Copy file in dll not working but working on exe ! 18 88
Delphi cmd execution 6 56
Performance of SQL statement 37 100
Dynamically Created Query 3 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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 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

17 Experts available now in Live!

Get 1:1 Help Now