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
 Bug with pipette 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
PeterPanino Posted - May 28 2013 : 12:58:10
Hi!

The two internal pipette cursors (#1805 and #1806) do not work correctly: The coordinates at the pointer of the pipette do not correspond to the X/Y coordinates when clicking with the pipette cursor! There is a relatively large offset. Is this a bug?
4   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jun 04 2013 : 00:35:21
"1796" is the resource name, not the cursor number. You could load it executing:

Screen.Cursors[8000] := LoadCursor(sysinit.hinstance, '1796');
ImageEnView1.AutoCursors := false;
ImageEnView1.Cursor := 8000;

..or as ImageEn cursor number 1798 (the same of resource named "1796")...

ImageEnView1.AutoCursors := false;
ImageEnView1.Cursor := 1798;


PeterPanino Posted - May 28 2013 : 19:23:59
Here is the resource-list from \ImageEn\DelphiXE2\imres.res, as it appears in VisualStudio 2010:



And here is #1796:



So why my compiled program does not use this resource?
PeterPanino Posted - May 28 2013 : 19:04:36
Hi! I have 4.3.1, where #1805 and #1806 are the pipette cursors as they appear at run-time in my program. Also the help file states this:



I have tried #1796, but it becomes the SelectionAdd cursor (the crosshair with the plus).

w2m Posted - May 28 2013 : 15:07:15
There is no code bug, but the cursors 1796 hotspot should be 6,22 in version 4.3.1. I did not check the hotspot of 1803. Also many of the cursor values shown in the help file do not match the imRes.Res file so it is almost impossible to know what cursor value to use to get the correct cursor unless you inspect the resource file.

The pipette cursors are now 1796 and 1803. 1805 is now scissors, and 1806 is select rectangle.

If you have a resource editor you can use your own cursor resource file, giving you complete control of the cursors. There are a number of demos in my eBook that shows how to load the cursors and use them with ImageEn.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html