蒹
蒹葭
Unregistered / Unconfirmed
GUEST, unregistred user!
问题一:我现在动态加载了一些groupbox,我要在这些groupbox里写入,总是不行;
问题二:我还要在刚动态加载的groupbox里动态加载label,可是写入以下代码,用ScrollBox1.Components不行,请各位富翁指点,谢谢
WITH Tlabel.Create(ScrollBox1.Components) do
name := 'label1';
caption := '';
parent := (ScrollBox1.Components as tgroupbox);
left := 3;
top :=0;
height := 20;
width := 5;
color := ClRed;
问题二:我还要在刚动态加载的groupbox里动态加载label,可是写入以下代码,用ScrollBox1.Components不行,请各位富翁指点,谢谢
WITH Tlabel.Create(ScrollBox1.Components) do
name := 'label1';
caption := '';
parent := (ScrollBox1.Components as tgroupbox);
left := 3;
top :=0;
height := 20;
width := 5;
color := ClRed;