Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 25.04.05 22:13 
Hallo, ich habe eine MDI Anwendung und erzeuge z.B. mit Form2 := TForm.Create(Form1); Form1 ist ja
dann Owner.
Wie kann ich auf die in Form1 komponenten zugreifen? Ich habe es mit Owner
versucht? Aber es kommen die Komponenten von Form1 nicht vor!

Im Allgemeinen: muß man im Voraus beim Prjekt beginn eine MDI Anwendung festlegen
oder spielt das keine Rolle? Ist das abänderbar?
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Di 26.04.05 07:37 
Hallo,

in diesem Fall musst Du einen Typecast machen. Mit TForm1(Owner).MeinControl müsste es eigentlich gehen.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Di 26.04.05 08:33 
Parent geht wohl nicht?

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mi 27.04.05 06:26 
user profile icon.Chef hat folgendes geschrieben:
Parent geht wohl nicht?


Ich hab's gelöst ich habe einfach die Unit zu uses Liste hinzugefügt und konnte direkt
auf Form1 zugreifen! Aber vielen Dank Leute!