Solved

Adding files to *.res

Posted on 1998-11-22
2
168 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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