The Delphi programming environment
At the top of the Delphi window are the title bar, the main menu (File, Edit, Search, View, Project, Run, Component, Database, Tools, Window, Help – 11 sections in all) and the toolbar; the component palette is divided into tabs (Standard, Additional, Win32 and others). The form (Form1) is the window of the application being created: components are dragged onto it with the mouse, and its size is also changed by dragging. The Object Inspector gives the list of properties (Properties) and events (Events) of the selected object, and the Object TreeView shows the objects of the application as a tree. The Code Editor changes together with the form, and the programmer writes the procedure that answers an event there. To create an application: File – New – Application. Delphi creates several files for each project, so save each project in a new folder of its own (File – Save All); before starting a new project from an existing one, copy the old folder, otherwise the previous work will be changed.
| Part | Meaning |
|---|---|
| main menu | 11 sections |
| component palette | tabs Standard, Additional, Win32 … |
| Form1 | the window of the application being created |
| Object Inspector | properties (Properties) and events (Events) |
| Object TreeView | the tree of objects |
| Code Editor | where the procedure answering an event is written |
A newcomer to a workshop first learns where the tools are kept: one on a shelf, one on the table, with the work area in the middle. A programming environment is the same: the menu, the toolbar, the properties window and the form each have their place. Someone who knows the places does not waste time searching.
Developers who create applications, software testers and hobby programmers work quickly because they know their working environment well.
On paper draw the window of a program or phone app from memory and name 4 parts of it (menu, toolbar, work area, side panel).
“The environment map”: a pair draws a screenshot of Delphi (or Lazarus), names 8 parts and writes the job of each in one word, then saves a new application in a separate folder.