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 ответов

26 просмотров

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

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

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

@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
Подобного рода ;Следующие три строки это директивы ассемблера, ;которые можно не задавать, т.к.работаем в Visual Studio. ;Символ ";" - это начало однострочного комментария ...
Егор Анелькин
3
Привет всем. появился вопрос. Разрабатываю сайт, в данный момент он запущен. Хостинг beget. Добавляю на сайт яндекс метрику с помощью полей client-settings (взято отсюда http...
Andrew
2
Подскажите, где смотреть результат выполнения программы? Код: ;.686 ;Система команд процессора 686 ;.MODEL FLAT,stdcall ;Модель памяти плоская, станда...
Егор Анелькин
5
еще вопрос, допустим мы создадим char массив из 10 элементов и присвоим ему через сканф 10 символов. и выведем все символы. Хотел спросить последний элемент /0 будет включать...
Anthem
11
открыть папку в проводнике: 1 - ShellExecute 2 - ExecuteProcess 3 - OpenDocument что лучше выбрать?
Alexey Kulakov
12
Изменение типа с SomeException на String и правда удобней @cheese_hs . А вот такой вариант насколько некрасив еще? loadConfigDB :: IO (Either String ConfigDataBase) loadConfi...
Camara
7
Где в Астане можно купить мясо для шашлыков?
Dancing Іңұқәһүғө
21
Карта сайта