Autor Beitrag
Girgl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 281


D6 Enterprise
BeitragVerfasst: So 25.04.04 18:31 
Servus,
also in nem TabSheet,dynamisch erstellt,hab ich ne memo dynamisch erstellt.Wie kann ich jetz die Memo des aktiven TabSheets ansprechen?
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: So 25.04.04 18:33 
Hi,

So:

ausblenden Delphi-Quelltext
1:
TMemo(TabSheet1.Controls[0]).Text := 'hallo';					


(Vorausgesetzt, Controls[0] ist ein TMemo...)
Girgl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 281


D6 Enterprise
BeitragVerfasst: So 25.04.04 19:17 
klappt irgendwie net.
Also ich hab zuerst das aktive TabSheet bestimmt mittels
ausblenden Delphi-Quelltext
1:
2:
3:
4:
var TabSheet:TTabSheet;
begin
TabSheet:=Form1.Pageontrol1.ActivePage;
TSynMemo(TabSheet.Controls[0]).Redo;


aber da passiert nix.Was is da falsch
Girgl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 281


D6 Enterprise
BeitragVerfasst: Di 27.04.04 13:41 
was wird denn mit Controls bestimmt?Die erste Komponente die auf dem TabSheet erstellt wurde oder was?
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 27.04.04 13:45 
Hallo,

wie wäre es, wenn Du FindComponent benutzt?

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)