Design Time components in Lazarus.
There is a non-visual class for which I want to try to make a non-visual DesignTime component on the palette. I'm thinking about it now. So, to create own DT non-visual component you will need to make it the heir of TComponent.
The original RunTime class is based on TObject (well, I didn't need the TComponent chips). Question: what should I do?
1) Change the original RunTime class anchestor?
2) Create a RunTime component object in the constructor of the new DesignTImeT component. BUT it is not beautiful: you will have to duplicate all the procedures or, when using, you will have to constantly access through a child RT class.
I didn't follow... a visual (design time) component, can inherit from TComponent which inherits from TObject
Yes. I have a class. Specifically, the wrapper of the telegram bot API (here). This class is not based on TComponent. I wanted to make Design Time a non-visual component based on it
I mean... what's not working?
Everything is working now. But now I want to make a non-visual component for TTelegramSender
Стикер
1 is the shortest way to do what do you want
Обсуждают сегодня