|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
17.12.2008, 16:28 | #1 |
Форумчанин
Регистрация: 08.12.2008
Сообщений: 156
|
добрыйдень. передомною была поставленна задача написать программу сапер (ну, игрушка, как стандартная). Когда я ее написал, препод дал след. задание: из своей программы сделать компонент. и вот тут попал в тупик.
вот код моего сопера (т.к. я уже засветил код преподу, поэтому нужно именно из моего заделать компонет ): Код:
Последний раз редактировалось rpy3uH; 17.12.2008 в 17:48. |
17.12.2008, 16:32 | #2 |
Форумчанин
Регистрация: 08.12.2008
Сообщений: 156
|
Код:
|
17.12.2008, 16:34 | #3 |
Android Developer
Старожил Подтвердите свой е-майл
Регистрация: 19.02.2007
Сообщений: 3,708
|
Гм... а вот интересно TForm1 - это не компонент ? это не класс который наследует другие классы VCL ? что сложного все это объединить в методы одного класса ( ну или нескольких ) потом переименовать тот же TForm1 на тот же TSaper и написать procedure Register; вот и будет вам компонент. А вы нам зачем собственно дали код ? не ужели опять из серии вот код сделайте за короткие сроки
|
17.12.2008, 16:38 | #4 |
Форумчанин
Регистрация: 08.12.2008
Сообщений: 156
|
Код:
|
17.12.2008, 16:48 | #5 |
Форумчанин
Регистрация: 08.12.2008
Сообщений: 156
|
нет, как я понял, необходимо создать компонент, который можно поместить на форму, задать несколько параметров и запустить.
но как можно на форму поместить компонент, прародителем которого является форма?о.О может, стоит прародителем сделать TPanel, но тогда там получается как-то сложно |
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Создание компонента, определить handle носителя. | Deight | Компоненты Delphi | 6 | 22.11.2008 09:45 |
Создание компонента | russianstrike | Компоненты Delphi | 15 | 01.10.2008 19:22 |
Создание компонента. | Черничный | Компоненты Delphi | 2 | 01.06.2008 23:28 |
Создание собственного компонента | Леха207 | Помощь студентам | 1 | 03.07.2007 12:45 |