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
 TrackMouseSelection not working?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Steven Aertssen

Belgium
9 Posts

Posted - Dec 12 2011 :  06:45:20  Show Profile  Reply
Hello,

please run your demo project (Multi\Multiview\multi.dpr). This project has TrackMouseSelection set to true, but it has a strange behaviour. When you run the project, please add 2 or 3 images to the ImageEnMView compoment. Then try to select the 3 images using the mouse. Click somewhere in the imageEnMView component next to the rightmost image. Keep the left mousebutton down and go to the leftmost image. A semi transparant rectangle is drawn over the images to show the selection. When the mouse goes over the first image (rightmost image), all images become selected. When moving on to the leftmost image, the rightmoste images become deselected. Perhaps this explanation is a bit unclear, so I added 2 screenshots showing the problem.





fab

1310 Posts

Posted - Dec 12 2011 :  12:41:18  Show Profile  Reply
Hello,
this bug has been fixed in 4.0.2. Here is the screen shot of current version:


Go to Top of Page

Steven Aertssen

Belgium
9 Posts

Posted - Dec 15 2011 :  03:53:55  Show Profile  Reply
Hi Fabrizio,

I installed version 4.0.2.29238, but the problem remains... Also I cannot compile your demo project anymore... I get the following error: [DCC Fatal Error] ievision.pas(1036): F2051 Unit hyieutils was compiled with a different version of ievision.IEInitialize_ievision

Any ideas?
Go to Top of Page

fab

1310 Posts

Posted - Dec 15 2011 :  04:13:13  Show Profile  Reply
Hi,
I'm sorry, I cannot replicate. With the last version it just works.
About the error, please remove all DCU files in the ImageEn directory.
Go to Top of Page

Steven Aertssen

Belgium
9 Posts

Posted - Dec 15 2011 :  05:37:43  Show Profile  Reply
Hi Fabrizio,

I found out why you cannot replicate it in your sample project. Try changing the MultiSelectionOptions. Set iemoRegion to false. You will see the problem is still there.
Go to Top of Page

fab

1310 Posts

Posted - Dec 15 2011 :  06:52:31  Show Profile  Reply
Hi Steven,
iemoRegion should be true when you want to select items inside the selected rectangle.
Go to Top of Page

Steven Aertssen

Belgium
9 Posts

Posted - Dec 15 2011 :  07:01:44  Show Profile  Reply
Hi Fabrizio,

I understand what you say, but is there a specific reason for this? Does this mean I cannot implement default windows functionality in my program? To implement the default Windows behavior I have to set iemoRegion to false and still be able to select images using a selection rectangle.

I know I can probably simulate the default windows behaviour by changing this setting depending on where the user clicks, but why not make it work in the ImageEnMView component itself?
Go to Top of Page

fab

1310 Posts

Posted - Dec 19 2011 :  05:31:09  Show Profile  Reply
Hi Steven,
actually there isn't a specific reason (until now nobody has asked it). Anyway it seems that Windows explorer uses "region selection" behavior instead of "per row".
Here is selection in "list" view:



"small icons" view:



"medium icons" view:

Go to Top of Page

Steven Aertssen

Belgium
9 Posts

Posted - Dec 19 2011 :  07:11:51  Show Profile  Reply
Hi Fabrizio,

yes, windows uses region selection when selecting items with a selection rectangle. This is also what I want, but when selecting items with the SHIFT button (click first item, press SHIFT key and click last item), windows does not use region selection.

So my intention was to set iemoRegion to false for selection with the SHIFT key. I guess I expected that:
  • Selection with the selection rectangle should always use region selection, regardless of the setting of iemoRegion

  • Selection with the SHIFT button depends on the setting of iemoRegion


Best regards.

Go to Top of Page

fab

1310 Posts

Posted - Dec 19 2011 :  09:57:57  Show Profile  Reply
Ok, sorry, now understand!
A new modality is necessary which mixes the two ways. I hope it will be added soon.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: