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
 Deselect Polygon
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

HMArnold

USA
28 Posts

Posted - Feb 11 2025 :  11:17:36  Show Profile  Reply
What is the best way to deselect a polygon?

After I draw multiple polygons and separate layers, the last one drawn is selected with all the nodes highlighted.

I have tried

Image.CurrentLayer.Selected := false;

and

(PImage.CurrentLayer as TIEPolylineLayer).Selected := false;

Thanks


HM Arnold

xequte

38796 Posts

Posted - Feb 11 2025 :  18:32:59  Show Profile  Reply
Hi

The correct method is to use set LayersCurrent, or call LayersDeselectAll():

http://www.imageen.com/help/TImageEnView.LayersDeselectAll.html

However if you the user is currently in layer point editing mode, it is difficult to exit that state. This is fixed in an earlier beta. You can email us for it.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

HMArnold

USA
28 Posts

Posted - Feb 12 2025 :  12:08:02  Show Profile  Reply
Thanks very much.

For some reason the LayersDelectAll() still holds the last drawn polygon, but setting LayersCurrent := 0 works fine.

HM Arnold
Go to Top of Page

xequte

38796 Posts

Posted - Feb 12 2025 :  18:38:51  Show Profile  Reply
Yes, that should be already fixed in recent betas.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: