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
 ImageEnMView1.MultiSelectedImagesCount
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

John

USA
94 Posts

Posted - Mar 24 2012 :  20:54:31  Show Profile  Reply
Hello

If multiple images are selected with the shift key depressed, the ImageEnMView1.MultiSelectedImagesCount remains at 1 whereas the MulitSelectedImageCount is correct if only the Ctrl key is depressed and multiple images are selected. The value of the EnableMultiSelect does not effect the outcome.

This result is not logical from a "count" perspective and will require the end user to know this anomalous result. Does anyone know what the explanation for this behavior is?

TIA

John

fab

1310 Posts

Posted - Mar 24 2012 :  23:35:13  Show Profile  Reply
Hello,
observing MultiSelectedImagesCount inside OnImageSelect it seems correct. I tried:
- CTRL and arrow keys: each time an arrow is pressed (and a new image is selected) MultiSelectedImagesCount increases by one
- CTRL and click: on mouse down (and a new image is selected) ultiSelectedImagesCount increases by one
- when CTRL is released MultiSelectedImagesCount doesn't change. This is ok, because there is no event in TImageEnMView that controls when CTRL is depressed.

I don't see unexpected behavior here.
Go to Top of Page

John

USA
94 Posts

Posted - Mar 27 2012 :  09:40:19  Show Profile  Reply
Fabrizio

I agree that the Ctrl key actions are correct. However, if the SHIFT key is held down and a range of images are selected with the mouse (i.e. click on image to start range and then click on another image to end the range) then the MultiSelectedImagesCount is not updated.

TIA

John
Go to Top of Page

fab

1310 Posts

Posted - Mar 27 2012 :  13:53:08  Show Profile  Reply
John,
handling OnImageSelect (just to know when actually user did selected images), you will see that MultiSelectedImagesCount increases by one for each selected image.
On mouse up, you should read the right value in MultiSelectedImagesCount.
If not, please let me know which properties you have changed in TImageEnMView from the defaults.
Go to Top of Page

John

USA
94 Posts

Posted - Mar 31 2012 :  13:05:09  Show Profile  Reply
Fabrizio

Thanks

I was incorrectly accessing the MultiSelectImageCount in the ImageEnMView1.OnImageSelect event rather than the OnKeyUp event.

TIA

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