Suite à un post précédent, j'arrive à créer dynamiquement des TabSheet dans un pagecontrol.
Maintenant, je cherche à peupler le tabsheet créé avec d'autres composants:
Mais le Label n'apparait pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 For j:=1 to i do begin with TTabSheet.Create(PageControl1) do begin PageControl:=PageControl1; Caption:='Champ '+IntToStr(j); Name:='Ch'+IntToStr(j); with TLabel.Create(self) do begin Left := 16; Top := 16; Width := 66; Height := 13; Caption := 'Longueur mini'; Parent:=TTabSheet(FindComponent('Ch'+IntToStr(j))); end; end;
Qui voit ce que j'ai oublié ? (ou mal fait )
Partager