A shape is added to the form. The shape is made into a circle, resized and colored red with the brush. A timer is added to allow the shape to move around the form. When the shape hits the side of the form the ball will bounce of the form’s side.
Code Download
FPAPPT12.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