Solved

Adding files to *.res

Posted on 1998-11-22
2
162 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
Comment Utility
 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
Comment Utility
THX
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

11 Experts available now in Live!

Get 1:1 Help Now