Link to home
Start Free TrialLog in
Avatar of kaloyan
kaloyan

asked on

How can I put my cursor.....

How can I put my cursor (from file .cur) in use in my application?
Avatar of ronit051397
ronit051397

You better increase the points and explain better what you need.
Avatar of kaloyan

ASKER

Edited text of question
Avatar of kaloyan

ASKER

Adjusted points to 6
In my opinion this question worth 30 points. If you increase to 30 I'll answer it.
ASKER CERTIFIED SOLUTION
Avatar of michaue
michaue

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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;

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;

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;