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
 line question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
497 Posts

Posted - May 27 2021 :  12:02:24  Show Profile  Reply
I am puzzled. When i draw a line by clicking, using ActiveImageEnView().MouseInteractLayers :=
[mlEditLayerPoints, mlClickCreateLineLayers];

i only get the end point. Nothing is drawn. not sure if i have to setup a brush.
See attached.

xequte

38127 Posts

Posted - May 27 2021 :  18:15:31  Show Profile  Reply
Hi

It's possible the line/border is not set (width = 0 or Color = clNone).

Try settings some layer defaults:

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

e.g.
ImageEnView1.LayerDefaults.Values[ IELP_BorderColor ] := '$008000FF';
ImageEnView1.LayerDefaults.Values[ IELP_BorderWidth ] := '3';


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

pierrotsc

USA
497 Posts

Posted - May 27 2021 :  18:36:56  Show Profile  Reply
same behavior. that's not it..it has to be something i am doing. let me work on it..the weird thing is that adding point to create a polyline work fine.
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 21 2021 :  17:11:09  Show Profile  Reply
still cannot find the problem. if i have shapes at the start or end, they show but the line does not. Is there a way to find out the line color ? I assume i have a statement somewhere that makes the line invisible.
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 21 2021 :  17:15:35  Show Profile  Reply
i even added
ImageEnView1.LayerDefaults.Values[ IELP_LineColor ] := 'clRed';
ImageEnView1.LayerDefaults.Values[ IELP_LineWidth ] := '6';



Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 21 2021 :  17:28:19  Show Profile  Reply
never mind. i did find my coding error. I have been overwriting the default.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: