T O P I C R E V I E W |
Steven Aertssen |
Posted - Dec 12 2011 : 06:45:20 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.

 |
9 L A T E S T R E P L I E S (Newest First) |
fab |
Posted - Dec 19 2011 : 09:57:57 Ok, sorry, now understand! A new modality is necessary which mixes the two ways. I hope it will be added soon. |
Steven Aertssen |
Posted - Dec 19 2011 : 07:11:51 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.
 |
fab |
Posted - Dec 19 2011 : 05:31:09 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:
 |
Steven Aertssen |
Posted - Dec 15 2011 : 07:01:44 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? |
fab |
Posted - Dec 15 2011 : 06:52:31 Hi Steven, iemoRegion should be true when you want to select items inside the selected rectangle. |
Steven Aertssen |
Posted - Dec 15 2011 : 05:37:43 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. |
fab |
Posted - Dec 15 2011 : 04:13:13 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. |
Steven Aertssen |
Posted - Dec 15 2011 : 03:53:55 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?
|
fab |
Posted - Dec 12 2011 : 12:41:18 Hello, this bug has been fixed in 4.0.2. Here is the screen shot of current version:
 |