ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 seizeable selection from code

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
JanSteevens Posted - Aug 12 2015 : 05:31:37
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
2   L A T E S T    R E P L I E S    (Newest First)
JanSteevens Posted - Aug 12 2015 : 10:53:31
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
w2m Posted - Aug 12 2015 : 10:14:47
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