ich möchte über einen klick auf einen button ein neues formular anzeigen lassen, was auch klappt.., dann möchte ich auf diesem Formula ein Label array erstellen..es wird auch fehlerlos übersetzt, nur wird nichts auf dem neuen Formula angezeigt.. hab keine ahnung woran es liegt..
Kann mir jemand helfen?
Danke schon mal!
mfg
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34:
| .... procedure TForm1.infoclick(Sender:TObject); begin Form3.showmodal; end; ...
private arrTextLabel : Array[0..50] of TLabel;
procedure TForm3.FormCreate(Sender: TObject); var z : integer; begin for z := 0 to 50 -1 do begin arrTextLabel[z] := TLabel.Create(Form3); with arrTextLabel[z] do begin Left := 50 ; height := 25; Parent := self; Caption := 'asklöjfhaslökjf'; font.size:= 12; color := clgreen; visible := true; top := z * (arrTextLabel[z].height + 2) +50; end; end; end; |