Autor Beitrag
recall
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: Sa 28.06.03 15:01 
Hi,

Ich möchte in der OnShow-Proc meines Hauptformulars eine Instanz einer
TStaticText-Komponente erzeugen und sie in ein Panel einfügen:

X := TStaticText.Create(Panel2);
X.Name := S;

X.Caption := 'iwseugfiwefgiewgfiwegfiuwge';
X.Visible := True;
X.Left := 0;
X.Top := 0;

Habe es auch mit RegisterComponent usw. versucht !
Wie geht's ???

Viele Grüsse.
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Sa 28.06.03 15:12 
Versuch´s mal mit:
ausblenden Delphi-Quelltext
1:
X.parent := Panel2;					


mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
recall Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: Sa 28.06.03 15:23 
Titel: thx
Danke, hat geklappt.