Autor Beitrag
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Sa 08.01.05 14:53 
Hi,
wenn ich über
ausblenden Delphi-Quelltext
1:
ViewPort := TEditorViewPortForm.Create(Application);					

mehrere neue formen erzeuge wie kann ich die formen später im einzelnen ansprechen?Oder muss ich die anders erstellen?

mfg matze

_________________
si tacuisses, philosophus mansisses.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Sa 08.01.05 15:13 
Wenn du die Formen wirklich von "außen" ansprechen musst, kannst du das über FindComponent machen. Du musst aber schon ein Unterscheidungskriterium in den Formen haben (z.B. in der Tag-Eigenschaft unterschiedliche Zahlen eintragen.
Einfacher wäre es vermutlich 4 Variablen (ViewPort1 bis ViewPort4 oder ein Array) zu definieren. Dann kannst die Formen darüber ansprechen.
matze.de Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Sa 08.01.05 16:00 
ok danke. Was wäre davon am optimalsten(schnellsten) ?

mfg matze

_________________
si tacuisses, philosophus mansisses.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Sa 08.01.05 16:03 
Da du beim FindComponent einfach für die Suche schon Zeit verbrauchst, vermute ich ganz stark, dass die zweite Variante schneller ist. :wink: