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
 seizeable selection from code
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

JanSteevens

Netherlands
17 Posts

Posted - Aug 12 2015 :  05:31:37  Show Profile  Reply
Hi Nigel,

I cannot find how to make a selection from code that gives a resizeable selection rectangle. The code I'm using is:

..
set X0, ..
..
ImageEnViewCurr.Select(X0, Y0, X1, Y1, iespReplace);
..
change X0, ...
..
ImageEnViewCurr.Select(X0, Y0, X1, Y1, iespAdd);

then invert the selection:

ImageEnViewCurr.InvertSelection;

This gives the selection specified and the selection can be moved but it is not resizeable.

Playing with ImageEnViewCurr.SelectionOptions did not help.

Any hint?

Regards,

Jan

w2m

USA
1990 Posts

Posted - Aug 12 2015 :  10:14:47  Show Profile  Reply
The multiple selections you make are rectangular but have more than 4 corners when combined. I believe you can only move selections that have 4 corners. This is also true for an elliptical selection or selections with more than 1 selected rectangle. It is just that the selection design (code) does not allow showing grips for more than 1 rectangular selection with 4 corners.

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

JanSteevens

Netherlands
17 Posts

Posted - Aug 12 2015 :  10:53:31  Show Profile  Reply
Hi Bill,

Thanks for the speedy reply. The situation is clear now.
After inverting the non-rectangular selections in my case the selection is again a simple rectangle, but it's of course rather easy to select that one myself using the coordinates I just calculated rather than using the InvertSelection command.

Which means the problem is solved,

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