Thema: Delphi TLabel.Create

Einzelnen Beitrag anzeigen

Benutzerbild von sakura
sakura

Registriert seit: 10. Jun 2002
Ort: München
11.412 Beiträge
 
Delphi 11 Alexandria
 
#2

Re: TLabel.Create

  Alt 28. Apr 2004, 15:43
Du solltest erst einmal den Namen der Variabel ändern, da Name ein bekannter Bezeichner ist - nicht nötig, aber besser

Code:
 var lblName: TLabel;
 ...
 lblName := TLabel.Create(Form1);
 lblName.AutoSize := False;
 lblName.Visible := True;
 lblName.Top := 56;
 lblName.Left := 408;
 lblName.Width := 220;
 lblName.Caption := 'Text:';
 [color=#ff0000]lblName.Parent := Form1;[/color]
......
Daniel W.
Ich bin nicht zurück, ich tue nur so
  Mit Zitat antworten Zitat