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

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
HMArnold Posted - Feb 11 2025 : 11:17:36
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 12 2025 : 18:38:51
Yes, that should be already fixed in recent betas.

Nigel
Xequte Software
www.imageen.com
HMArnold Posted - Feb 12 2025 : 12:08:02
Thanks very much.

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

HM Arnold
xequte Posted - Feb 11 2025 : 18:32:59
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