DapperDan
asked on
Draw arrow heads on lines in VB6
Hello everyone
I am creating an application that has a drawing element, rather like Visio.
It allows lines to connect various objects on screen. These lines can be at any angle (not just the compass points).
I need to be able to draw an arrow head at one end of the line. I suppose I could calculate the line angle and then calculate the points of the arrow triangle from this.
Is there an easier way? Perhaps a Win API function will automatically ad an arrow head to a line?
Thanks
I am creating an application that has a drawing element, rather like Visio.
It allows lines to connect various objects on screen. These lines can be at any angle (not just the compass points).
I need to be able to draw an arrow head at one end of the line. I suppose I could calculate the line angle and then calculate the points of the arrow triangle from this.
Is there an easier way? Perhaps a Win API function will automatically ad an arrow head to a line?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'll have a look at both of these, thanks.
ASKER
Thanks, both of you.
I used Paul's solution in the end, so I should probably give the points to him.
I used Paul's solution in the end, so I should probably give the points to him.
i'm looking for something like that.
can u send me what u did ?
can u send me what u did ?
http://www.vb-helper.com/howto_draw_arrows.html