ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Assign my own designed cursors
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Jun 18 2020 :  00:15:00  Show Profile  Reply
Hello,

I want to assign my own designed cursors.

Any ideas as to how can we assign them?

TIA


Yogi Yang

spetric

Croatia
308 Posts

Posted - Jun 18 2020 :  15:03:38  Show Profile  Reply
Hi,

I'm loading custom cursors from compiled resource using LoadCursor,
but I use C++. Here is a nice explanation how to load custom cursors in Delphi:

http://delphi.cjcsoft.net/viewthread.php?tid=44731

Maybe this can help you.

Siniša

Go to Top of Page

yogiyang

India
727 Posts

Posted - Jun 19 2020 :  01:18:32  Show Profile  Reply
Hello Siniša,

Thanks for the link. I will go through it try it out in my software.

TIA


Yogi Yang
Go to Top of Page

kturkay

44 Posts

Posted - Jun 27 2020 :  18:28:25  Show Profile  Reply
uses
winapi.windows;
.
.
function ExePath: string;
begin
Result := ExtractFilePath(Application.ExeName);
end;
.
.

Screen.Cursors[crIEPencil] := LoadCursorFromFile(PWideChar(ExePath + 'yourpencil.cur'));

you can find all constants similar to crIEPencil
in chm help file in this topic
TImageEnView.Cursor


if you want them embedded. you can replace those resources using
https://stefansundin.github.io/xn_resource_editor/


Go to Top of Page

yogiyang

India
727 Posts

Posted - Jul 10 2020 :  06:23:35  Show Profile  Reply
Thanks for the link of resource editor.

Where is the resource file located?

TIA


Yogi Yang
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: