169 похожих чатов

Advice is needed. Who had the experience of creating own

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.

6 ответов

62 просмотра

I didn't follow... a visual (design time) component, can inherit from TComponent which inherits from TObject

Renat-Suleymanov Автор вопроса
Mobius One
I didn't follow... a visual (design time) componen...

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

Renat-Suleymanov Автор вопроса
Mobius One
I mean... what's not working?

Everything is working now. But now I want to make a non-visual component for TTelegramSender

Renat-Suleymanov Автор вопроса

Стикер

1 is the shortest way to do what do you want

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Добрый день! Скажите пожалуйста, а какие программы вы бы рекомендовали написать для того, чтобы научиться управлять памятью? Можно написать динамический массив, можно связный ...
Филипп
7
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
Ребят в СИ можно реализовать ООП?
Николай
33
https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_h_common.erl#L174 https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_olp.erl#L76 15 лет назад...
Maksim Lapshin
20
Карта сайта