Frames

Another concept that allows us to make parts of a user interface reusable are frames. A frame is similar to a form. It is implemented in a separate unit, can be visually edited in the IDE, and you can place controls and components on it. A frame, on the other hand, cannot be directly displayed on a screen. To use it, you must place it on a form, or on another frame, which is then placed on a form.

Frames function more like composite controls than full forms. You can even put a frame on the component palette and use it as a normal component later. Similarly to forms, frames can be added to the object repository and can be inherited from.

To create a new frame, select File| New| Other... Then, select the Delphi Files branch and find ...

Get Hands-On Design Patterns with Delphi now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.