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 |
|
|