Working With Components in Delphi
Many components are provided in the IDE on the Component palette. You select components from the Component palette and drop them onto a form or data module. You design the application’s user interface by arranging the visual components such as buttons and list boxes on a form. You can also place nonvisual components such as data access components on either a form or a data module. At first glance, Delphi’s components appear to be just like any other classes. But there are differences between components in Delphi and the standard class hierarchies that many programmers work with. Some differences are described here: All Delphi components descend from TComponent. Components are most often used as is and are changed through their properties, rather than serving as “base classes” to be subclassed to add or change functionality. When a component is inherited, it is usually to add specific code to existing event handling member functions. Components can only be allocated on t