?
Solved

Adding files to *.res

Posted on 1998-11-22
2
Medium Priority
?
171 Views
Last Modified: 2010-04-04
How can I add mouse cursors to my project's resource file???
0
Comment
Question by:jack_p50
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
davidmwilliams earned 60 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

752 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