Build a Wordpad-like application with Delphi