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
 Bug with pipette cursors?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

981 Posts

Posted - May 28 2013 :  12:58:10  Show Profile  Reply
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?

w2m

USA
1990 Posts

Posted - May 28 2013 :  15:07:15  Show Profile  Reply
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
Go to Top of Page

PeterPanino

981 Posts

Posted - May 28 2013 :  19:04:36  Show Profile  Reply
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).

Go to Top of Page

PeterPanino

981 Posts

Posted - May 28 2013 :  19:23:59  Show Profile  Reply
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?
Go to Top of Page

fab

1310 Posts

Posted - Jun 04 2013 :  00:35:21  Show Profile  Reply
"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;


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