Unable to change color lazarus / 10-Designer ---------------------------------------------------------------------- Lazzarone · 2006-11-27 10:33 Hi to all. I use Lazarus 0.9.20 with Win XP and I want to draw a red line on a form but the designed line is always black. Code is   Form1.Canvas.color :=clRed;   Form1.Canvas.MoveTo(50,50);   form1.Canvas.LineTo(100,100); Thanks. Lazzarone ---------------------------------------------------------------------- Vincent Snijders · 2006-11-27 10:50 Use Code: [Select]Form1.Canvas.Pen.color :=clRed; to change the color of the line. ---------------------------------------------------------------------- Lazzarone · 2006-11-27 12:50 Thanks Vincent ---------------------------------------------------------------------- Lazzarone · 2006-11-27 12:57 Thanks Vincent