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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Assign my own designed cursors

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yogiyang Posted - Jun 18 2020 : 00:15:00
Hello,

I want to assign my own designed cursors.

Any ideas as to how can we assign them?

TIA


Yogi Yang
4   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Jul 10 2020 : 06:23:35
Thanks for the link of resource editor.

Where is the resource file located?

TIA


Yogi Yang
kturkay Posted - Jun 27 2020 : 18:28:25
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/


yogiyang Posted - Jun 19 2020 : 01:18:32
Hello Siniša,

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

TIA


Yogi Yang
spetric Posted - Jun 18 2020 : 15:03:38
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