Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2007.09.09;
Скачать: [xml.tar.bz2];

Вниз

Динамическое добавление контрола   Найти похожие ветки 

 
White Barsik   (2007-08-17 10:24) [0]

простой вопрос который поставил меня в тупик. Как динамически на форму добавить контрол? Кнопку, мемо и пр. То есть есть глобалный экземпляр объекта типа вышеперечисленных и как их привязать к форме, панели и тд.?


 
Вася Правильный   (2007-08-17 10:37) [1]

x:=TButton.Create(Form1);
x.Parent:=Form1;
x.top:=10;
x.left:=10;


 
Anatoly Podgoretsky ©   (2007-08-17 10:42) [2]

> 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 control to 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.

Так же и убираешь.


 
KSergey ©   (2007-08-17 12:22) [3]

http://www.delphikingdom.com/asp/viewitem.asp?catalogID=342


 
White Barsik   (2007-08-20 09:16) [4]

Моя благодарность всем...



Страницы: 1 вся ветка

Форум: "Начинающим";
Текущий архив: 2007.09.09;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.034 c
6-1168975408
Makhanev Alexander
2007-01-16 22:23
2007.09.09
Файлообмен через IdFtp, IdFtpServer....


2-1187089909
Vital1103
2007-08-14 15:11
2007.09.09
Incompatible types: String and PAnsiChar


3-1179212185
zdm
2007-05-15 10:56
2007.09.09
Миграция


2-1187264005
Johnnnnnnn
2007-08-16 15:33
2007.09.09
Генератор паролей помогите разобраться


15-1186868686
lookin
2007-08-12 01:44
2007.09.09
Непонятность про мужиков...





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский