Solved

How can I put my cursor.....

Posted on 1998-06-20
8
176 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
 
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

10 Experts available now in Live!

Get 1:1 Help Now