This tutorial uses the OnPaint event. The OnPaint event will draw to the canvas every time the form is refreshed. The canvas, lines, pen color and width are used in this tutorial.
Code Download
FPAppT14.zip
Free Pascal
www.freepascal.org
Free Pascal Wiki
wiki.freepascal.org
Lazarus IDE
www.lazarus-ide.org
Lazarus Forum
forum.lazarus.freepascal.org/index.php?action=forum
Projects Using Lazarus
wiki.freepascal.org/Projects_using_Lazarus