Digging deeper in Delphi

Saturday, March 28th, 2009 1,929 views

Threads are parts of a program that can be executed “simultaniously”. The are assigned running time by the operating system. Usually a Delphi project has just one thread (it is created without you knowing about it). This is the main thread. When it is terminated the whole program quits. Threads are useful if you want [...]

The most important functions in Delphi

Saturday, March 28th, 2009 219 views

In most Windows programs the most important functions can not only be reached through the menu but also via hotkeys and a toolbar. The hotkeys are very easy. Just set the “shortcut” property of a menu entry to anything you want. To get a toolbar in your form you need to add a ToolBar component [...]

The guide to create a simple text editor in Delphi

Saturday, March 28th, 2009 318 views

This a step-by-step guide to create a simple text editor in Delphi. In this example you will get to know some more components. First, make a new application by choosing File – New Application. You will see a blank form and an almost empty source code window. As a first step create the main menu [...]

Constants and Variables

Saturday, March 28th, 2009 143 views
Constants and Variables

Constants and Varibales are declared the same way as in Turbo Pascal: const MyConstant = 100; MyOtherConst: real = 1.0; var MyVar: integer; MySet: set of byte; Note that (same as in Turbo Pascal) the variables are not initialized. You can however declare local typed constants (which you cannot do in standard Pascal): procedure DoSomething; [...]

Basic Delphi – What is Delphi ?

Saturday, March 28th, 2009 112 views

Introduction For this tutorial I assume that you are familiar with Pascal. If you are not, read one of the many Turbo Pascal tutorials first (search for “pascal tutorial” in Yahoo). It also helps to know the concepts of object oriented programing (OOP), but I’ll briefly explain this. Please excuse all the typos and other [...]