Solved

How can I put my cursor.....

Posted on 1998-06-20
8
180 Views
Last Modified: 2010-04-04
How can I put my cursor (from file .cur) in use in my application?
0
Comment
Question by:kaloyan
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 5

Expert Comment

by:ronit051397
ID: 1354432
You better increase the points and explain better what you need.
0
 

Author Comment

by:kaloyan
ID: 1354433
Edited text of question
0
 

Author Comment

by:kaloyan
ID: 1354434
Adjusted points to 6
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 5

Expert Comment

by:ronit051397
ID: 1354435
In my opinion this question worth 30 points. If you increase to 30 I'll answer it.
0
 
LVL 1

Accepted Solution

by:
michaue earned 0 total points
ID: 1354436
You can look in your Delphi help under TScreen object and under its Cursors property.  Down at the bottom there is example code about loading custom cursors.

Or you can have a look at the help for the TCustomImageList object and under its FileLoad property ...

Have fun
Elfrieda :)
0
 

Expert Comment

by:buboi
ID: 1354437
const MyCursor = 5;
var
  err:word;
begin
  err:=loadimage(
     hinstance,
     pchar('c_no01.cur'), //your cursor filename
     image_cursor,
     32,
     32,
     lr_defaultcolor or lr_loadfromfile);
  screen.Cursors[MyCursor]:=tcursor(err);
  self.cursor:=MyCursor;
end;

0
 

Expert Comment

by:buboi
ID: 1354438
const MyCursor = 5;
var
  err:word;
begin
  err:=loadimage(
     hinstance,
     pchar('c_no01.cur'), //your cursor filename
     image_cursor,
     32,
     32,
     lr_defaultcolor or lr_loadfromfile);
  screen.Cursors[MyCursor]:=tcursor(err);
  self.cursor:=MyCursor;
end;

0
 

Expert Comment

by:buboi
ID: 1354439
const MyCursor = 5;
var
  cursorhandle:word;
begin
  cursorhandle:=loadimage(
     hinstance,
     pchar('c_no01.cur'), //your cursor filename
     image_cursor,
     32,           //Must be the true cursor width & height
     32,           //
  lr_defaultcolor or lr_loadfromfile);//must set lr_loadfromfile

  screen.Cursors[MyCursor]:=tcursor(cursorhandle);
  self.cursor:=MyCursor;
end;

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 214
delphi exception 7 64
Error E2158 compiling with Delphi XE10 Seattle 2 98
Dynamically Created Query 3 55
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 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