Solved

Adding files to *.res

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 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