Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i use other's CURSOR's in my app?? 2

Status
Not open for further replies.

ivoestg

Programmer
Mar 21, 2001
77
PT
how can i use other's CURSOR's in my app. i done some cursor's and i whant to use then can you tell me how??? thanks...
 
This one comes stright from the Delphi Help. Hope it helps.

This example shows how to add custom cursors to an application. It assumes that a custom cursor with the name NewCursor has been added to the resources (.RES file) of the application. You can add the cursor using the image editor. (Tools | Image Editor)
The following code makes this cursor available to the application via the constant crMyCursor, and sets it as the global cursor to the application.

const

crMyCursor = 5;
procedure TForm1.FormCreate(Sender: TObject);
begin
Screen.Cursors[crMyCursor] := LoadCursor(HInstance, 'NewCursor');
Cursor := crMyCursor;
end;
 
yes...but whow do i put the NewCursor in the (.res file)??? thanks...
 
Use the image editor in Tools | Image Editor then open you .RES file (all compiled delphi apps have a .RES file) right click on contents - select new - choose cursor - change its name and create it in the image editor.

OR

If you have Microsoft Misuall C++ open the .RES file in this and this will alow you to import your .CUR files

X-) Billy H

bhogar@acxiom.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top