How to draw an arrow on top of a point
Posted: Mon Jun 30, 2008 11:53 am
Hi,
I need to draw some small vertical arrow (with a text on top) on top of a candle. The purpose is to add some extra info for a candle. The arrow should “stay” with the candle when the user zooms/scrolls. Also the arrow can be on top or on the bottom of the candle.
The find x,y / draw text part are ok. (I use TAnnotationTool / CalcXPos-Value & OnZoom)
But I don’t know how to draw an arrow.
Since the drawLineTool cannot draw arrow head,
I was thinking about making a child of TDrawLinesTool & TDrawLine to add info about the arrow style (mainly the anchor and the color) and rewrite the paint method. But it seems very complicated and long for something so basic.
Did I miss the magic tool that draws arrows?
Do you know a more simple way?
Do you have a tool "Follow-this-point/position-with-custom-draw" ?
thanks in advance for you help,
PS:
I use the .label to store the candle date.
Context:
winXP SP2,
TeeChart win 7.05 (with source)
Delphi Architect 9.0
I need to draw some small vertical arrow (with a text on top) on top of a candle. The purpose is to add some extra info for a candle. The arrow should “stay” with the candle when the user zooms/scrolls. Also the arrow can be on top or on the bottom of the candle.
The find x,y / draw text part are ok. (I use TAnnotationTool / CalcXPos-Value & OnZoom)
But I don’t know how to draw an arrow.
Since the drawLineTool cannot draw arrow head,
I was thinking about making a child of TDrawLinesTool & TDrawLine to add info about the arrow style (mainly the anchor and the color) and rewrite the paint method. But it seems very complicated and long for something so basic.
Did I miss the magic tool that draws arrows?
Do you know a more simple way?
Do you have a tool "Follow-this-point/position-with-custom-draw" ?
thanks in advance for you help,
PS:
I use the .label to store the candle date.
Context:
winXP SP2,
TeeChart win 7.05 (with source)
Delphi Architect 9.0