13-04-2012, 10:40 PM
اعمل 4 TGroupBox
المشكله في تتاليهم وتتابعهم
كبف انقل Height السابق لل top الاحق
![[صورة: picture0001dc.jpg]](http://img546.imageshack.us/img546/8606/picture0001dc.jpg)
مثلا كيف نعمل تراصف مثل الصوره
بحيث يكون ديناميكي
كود :
for j := 0 to 3 do
begin
GroupBox := TGroupBox.Create(Self);
with GroupBox do
begin
Parent := Panel1;
Caption := GroupBoxCaptions[j];
// Left := GroupBox.Left + 8;
Left := ((j + 8) mod 1) * 25 + 3;
// Height:=205;
// Groupheight := intbuff + 25;
top := ((j) mod 4) * Y0 ;
end;كبف انقل Height السابق لل top الاحق
![[صورة: picture0001dc.jpg]](http://img546.imageshack.us/img546/8606/picture0001dc.jpg)
مثلا كيف نعمل تراصف مثل الصوره
بحيث يكون ديناميكي
![[صورة: picture0001ks.jpg]](http://img36.imageshack.us/img36/2047/picture0001ks.jpg)