I have been using Delphi Frames as visual components for quite some time now.
They make it really easy to use the Delphi IDE to visually design your component.
This makes the development process for creating visual components much easier and faster.
There are some things you need to watch when doing this, so I’ll devote a few blogs posts on this topic over the next couple of months.
A few of the things are:
- When you put components on your frame, and later drop that frame as a component on a Delphi form or frame, the components are visible in the Structure Pane.
- The
Visible
property is ignored at design time. - You need to watch resizing.
- Frames do not have
OnCreate
andOnDestroy
events. - Error messages about a missing
ClientHeight
property. - You can still drop other components on your frame.
- … probably some more that I forgot right now…
The first blog on this series is about the first issue:
When you put components on your frame, and later drop that frame as a component on a Delphi form or frame, the components are visible in the Structure Pane.
The bad thing about this is that you can now delete the components on the frame using the structure pane.
This leads to all sorts of problems (mostly access violations).
Read the rest of this entry »