Solved

How can I put my cursor.....

Posted on 1998-06-20
8
182 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

792 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