|
Arrow line |
Posted by Thexder HO on Jan-27-2021 07:26 |
|
Hi Peter,
How can I draw an arrow at the end point of a line created by DrawArea method?
Rgds,
Thexder |
Re: Arrow line |
Posted by Peter Kwan on Jan-28-2021 00:42 |
|
Hi Thexder HO,
For XYCharts, arrows can be added by using the VectorLayer. But for DrawArea, I would just draw a rotated triangle as the arrow head. You can use the DrawArea.polygon method to draw any polygon, including a triangle.
https://www.advsofteng.com/doc/cdcpp.htm#DrawArea.polygon.htm
Another method is just to draw 2 lines to form a "V" shape as the tip of your line to act as an arrow.
Regards
Peter Kwan |
Re: Arrow line |
Posted by Thexder HO on Jan-28-2021 07:59 |
|
Hi Peter,
yes Peter, you are right,
after going through the supporting document in detail, I managed how to achieve it,
you method suggested is the best way to it this. other methods will cause the program looks more complicated and inconsistant.
thanks!
Rgds,
Thexder |
|