Hallo everone,
IntroI am struggling to create a custom component with two-depth classes (base class is extended and put into a panel). The aim is to create a panel with desired amount of double labels (double label = paramter + value).
The problem i encountered is, that the "Name" parameter is not set automatically (it should be though... see pics below) and it causes problems while saving (component causing a freezing of the whole IDE making it unuseful in a big project).
QuestionHow can i solve it? What am i doing wrong? What is the convention / routine to make my own complex custom component?
Source for youMy reduced *.lpk package and example project are attached below.
The zip contains the package which installs the described component in the additional tab 'ForumQuestions' in component pallete.
AdditionalThe sources like delphi-treff (
https://www.delphi-treff.de/tutorials/vcl/komponenten-entwicklen/5/) or wiki (
https://wiki.freepascal.org/How_To_Write_Lazarus_Component) aren't helpful in that matter.
Thanks in advance!
Ernest
Lazarus 2.2.6 (rev lazarus_2_2_6) FPC 3.2.2 x86_64-win64-win32/win64
Tags: Subcomponent, embeded compoent, nested component, component in component,