January 17th, 2013, 02:35 AM
Drawing traingle using gdi, how?
I want to draw a simple triangle. Any help, feedback will be so helpful.
Thank you already.
January 18th, 2013, 01:49 AM
Most (if not all) GDI calls already wrapped in TCanvas. So you can use methods of TCanvas to do GDI "drawing". For your case, you would need to move the "pointer" to one corner of the triangle, draw a line to the next corner, then draw another line to the next corner, and finally draw the final line to the initial corner.
Open help for TCanvas, and there you should find methods named MoveTo and Line (or was it LineTo?).