I have this application that reuses a sort of idiom in a number of places. There\'s a TPanel, and on it are some labels and buttons. The purpose is to allow the user to sele
Yes, absolutely it is wise to build components like that because It saves a huge amount of coding.
Here is a guide to creating them semi-visually: How to Build Aggregate/Composite Components in Delphi
Essentially, the process outlined in this document is:
Where the document I think is wrong is that, for example, the example component is descended from a TPanel whereas to me it makes more sense to use TCustomPanel and expose only the methods you want to.
But it also explains how to add OnClick handlers etc.
the advantage of this method is that you get the layout of the components within the Panel done visually.