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
 Drag Line Layer points
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

c.basso

Italy
36 Posts

Posted - Aug 19 2019 :  10:44:21  Show Profile  Reply
Hi,
I'm trying to migrate from IEKLine objects on ImageEnVect to new Line Layers.
I can't understand how to manage line points drag & drop to resize/move a line,
like it was on IEKLine vect objects.
If I try to move/resize a line layer, I can only drag & drop the layer rectangle corners, not the line points. If a line is a diagonal line, it's very complicated to manage.
Also on layers demo it seems that I cannot do that, but probably I'm missing something.
How can I achieve this?

Thanks

Claudio

xequte

38182 Posts

Posted - Aug 19 2019 :  19:50:03  Show Profile  Reply
Hi Claudio

To drag by points, use the mlEditLayerPoints interaction:

ImageEnView1.MouseInteractLayers := [ mlEditLayerPoints ];
or
ImageEnView1.MouseInteractLayers := [ mlClickCreateLineLayers, mlEditLayerPoints ];

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



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

c.basso

Italy
36 Posts

Posted - Aug 20 2019 :  02:15:12  Show Profile  Reply
Hi,
ok, with that property it works like expected,
but if I clic on one of the points (example with simple line, 2 points),
instead of move that point, it rebuild the line starting from that point.
So I can't "adjust" a line moving just a bit one of the edges, because when I drag one of the points, it cancel old line and starts with a new one from the dragged point.
I hope you understand what I mean.

Thanks


Claudio
Go to Top of Page

xequte

38182 Posts

Posted - Aug 20 2019 :  15:58:35  Show Profile  Reply
Hi Claudio

That should not be happening. Are you able to reproduce in the Line Layers demo:

http://www.imageen.com/files/demos/run/LayerEditing/Layers_Lines/Layers.exe


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

c.basso

Italy
36 Posts

Posted - Aug 22 2019 :  04:55:31  Show Profile  Reply
Ok, found the problem.
The issue appear if MouseInteractLayers = [mlEditLayerPoints]
if MouseInteractLayers = [mlClickCreateLineLayers, mlEditLayerPoints]
the behaviour is correct.
Is this intentionally?
With this situation to be able to manipulate existing line points,
I am forced to allow line creation with mouse.

Thanks


Claudio
Go to Top of Page

xequte

38182 Posts

Posted - Aug 22 2019 :  19:33:13  Show Profile  Reply
Hi Claudio

I believe that is an issue in 8.6.0. Please email me for an updated beta, or wait for 8.7.0 in early September.

Apologies for that.



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

c.basso

Italy
36 Posts

Posted - Aug 23 2019 :  10:40:54  Show Profile  Reply
Ok, I'll wait stable version.

Thanks

Claudio
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: