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
 Problem with selection
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rmklever

Norway
51 Posts

Posted - Jul 15 2018 :  06:38:53  Show Profile  Reply
Hi,

There seems to be a problem when selecting. When you start selecting nothing is really selected and you can not select the rightmost or bottom line.




I am using this a lot so if there is an easy fix I would be happy



Roy M Klever
Klever on Delphi - www.rmklever.com

w2m

USA
1990 Posts

Posted - Jul 15 2018 :  08:58:51  Show Profile  Reply
I think that somehow the selection grips are not active. There should be 8 selection grips on the corners and in the middle of selection borders. Did you turnoff this somehow? I think this will be resolved if the grips are visible. Then you can select the grips with the mouse and resize the selection.

ImageEnView1.SetSelectionGripStyle(clWhite, clWhite, bsSolid, 5, true, iegsCircle);

How are you creating the selection? Show some code please.
What verion of ImageEn are you using?
Does the Demos\Other\Mouseinteract demo work correctly?

Selections are working for me just fine with version 8.0.1.

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

w2m

USA
1990 Posts

Posted - Jul 15 2018 :  09:11:53  Show Profile  Reply
I think your problem may be with SelectionOptions:
ImageEnView1.SelectionOptions := ImageEnView1.SelectionOptions - [iesoSizeable];

Set selection options to this
ImageEnView1.SelectionOptions := ImageEnView1.SelectionOptions + [iesoSizeable];
and it may be fixed.

If selection options include - iesoSizeable, then no grips are drawn?

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

rmklever

Norway
51 Posts

Posted - Jul 15 2018 :  09:38:32  Show Profile  Reply
Thanks Bill,

I am using latest version v8.01

Your last tip did the trick! Including [iesoSizeable] in SelectionOptions was just what was needed. Thanks for quick fix!

I do not have grip on the selection, because it is just a one time selection for croping the area thats being selected. This is a crop tool.



Roy M Klever
Klever on Delphi - www.rmklever.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 15 2018 :  11:21:41  Show Profile  Reply
There are many new enhancements in 8.0.1 including CropTools.
ImageEnView.MouseInteract := [miCropTool];
The CropTool is a little different on how it works but you may want to try that as well. Look it up in the help file.

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: