![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Динамическое добавление контрола [D6, WinXP]
White Barsik © (2007-08-17 10:24:00)простой вопрос который поставил меня в тупик. Как динамически на форму добавить контрол? Кнопку, мемо и пр. То есть есть глобалный экземпляр объекта типа вышеперечисленных и как их привязать к форме, панели и тд.?
White Barsik (2007-08-20 09:16:00) [1]Моя благодарность всем...
KSergey (2007-08-17 12:22:00) [2]http://www.delphikingdom.com/asp/viewitem.asp?catalogID=342
Anatoly Podgoretsky (2007-08-17 10:42:00) [3]> White Barsik (17.08.2007 10:24:00) [0]
Applications should not need to call InsertControl directly. Child controls are automatically inserted and removed when added or deleted at design time. At runtime, use the Parent property of the child controlto insert it in the Controls array. If the child control is already the child of another control, setting the Parent property ensures that the child is removed from the Controls of the original parent.
Так же и убираешь.
Вася Правильный (2007-08-17 10:37:00) [4]
x:=TButton.Create(Form1);
x.Parent:=Form1;
x.top:=10;
x.left:=10;