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

thipayarat.gfin

Thailand
2 Posts

Posted - Aug 17 2018 :  05:42:26  Show Profile  Reply
1. I am using ImageEnVect.MouseInteract := [miDrawCreatePolylineLayers] to create a polyline layer and ending by dblClick for finish draw polygon layer. but MouseInteract is still [miDrawCreatePolylineLayers] when click it create new layer and draw polygon. How i change MouseInteract when finish draw polygon layer by dblClick or handle event when finish draw polygon layer by dblClick?

2. how to handle event mouse when mouse is on layer? how to know mouse on/focus layer?

Thanks guys

xequte

38182 Posts

Posted - Aug 19 2018 :  16:59:01  Show Profile  Reply
Hi

1. You can use the ieiLayerPointsEdited of the LayersNotifyEx event to detect when line insertion completes

2. When a layer is selected the OnLayerSelectionChange event occurs:

https://www.imageen.com/help/TImageEnView.OnLayerSelectionChange.html

You can detect other events, such as MouseOver using OnLayerNotifyEx:

https://www.imageen.com/help/TImageEnView.OnLayerNotifyEx.html

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