Autor Beitrag
Anfänger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

WinXP
D3 Prof
BeitragVerfasst: So 03.10.04 11:36 
Ich habe eine MDI-Form und erstelle zur Laufzeit MDI-Childs mit Komponenten.
Nun muss ich von der MDI-Form auf die Eigenschaften der Komponenten der MDI-Childs zugreifen. Hab aber keine Ahnung, wie ich das realisieren soll.

Ich habe es schon mit folgensdermaßen versucht:
ausblenden Delphi-Quelltext
1:
    MDIChildren[MDIChildCount-1].Image1.Picture.LoadFromFile(OpenPictureDialog1.FileName);					
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: So 03.10.04 12:53 
Klar, so "denkt" Delphi ja auch, beim MDIChild handele es sich um ein TForm. Du musst Delphi mit as auch noch sagen, um welche Art von Child-Form es sich handelt:
ausblenden Delphi-Quelltext
1:
  (MDIChildren[MDIChildCount-1] as TMDIChild).Memo1.Lines.Add('Hello, World');					

TMDIChild musst Du halt entsprechend ersetzen.

raziel

_________________
JSXGraph
Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

WinXP
D3 Prof
BeitragVerfasst: So 03.10.04 15:45 
Danke, jetzt funzt es :D