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
 How to allow only one selection?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Mar 17 2017 :  08:48:06  Show Profile  Reply
Hello,

I have a need to allow user to create only one selection (rectangle marquee selection).

Once the user creates that selection all that they can do is move it around, resize it. They cannot remove selection or add new selection.

How can we do this?

TIA


Yogi Yang

w2m

USA
1990 Posts

Posted - Mar 17 2017 :  12:55:27  Show Profile  Reply
You must be doing something incorrectly in code because if you create a new project, add a TImageEnView or TImageEnVect to the form and set the MouseInteract property to [miSelect] you can make a selection then just click on the image outside of the selection, the selection is deselected and the selection is removed.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: