Autor Beitrag
simlei
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

WIN XP
D7
BeitragVerfasst: Sa 22.03.08 14:56 
Hallo! Ich suche eine Möglichkeit, ein Formular, welches ich entworfen habe, im Programm mehrmals nebeneinander anzuzeigen und auszulesen. Das ganze soll dann so aussehen, dass ich wie in einem Array die Fenster erzeugen und ansprechen kann. Ich habe nur keine Ahnung wie.. Wäre nett, wenn mir jemand einkleinen Tipp oder so geben kann, danke!
icho2099
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101
Erhaltene Danke: 12

WIN XP, WIN 7, WIN 10
Delphi 6 Prof, Delphi 2005, FPC
BeitragVerfasst: Sa 22.03.08 15:28 
in etwa so:

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
(* dein Fenster *)
Unit UMyForm;

Type
TMyForm = Class(TForm;

          end;

Type
  (* ein Array für die 5 Forms *)
  TMFAR = Array[1..5] of TMyForm;

.....
(* aus einer Mainform heraus die 5 Fenster erzeugen *)
Unit Main;

Type
  TMainForm = Class(TForm)
              MFAR : TMFAR;
              ....
              Procedure MakeMyForms;
              end;
.....

Procedure TMainForm.MakeMyForms;
Var i : Integer;
    l : Integer;
begin
  (* 5 MyForms erstellen *)
  l := 10;
  For i := 1 to 5 do begin
    MFAR[i] := TMyForm.Create(Self);
    MFAR[i].Left := l;
    MFAR[i].Show;
    l := l + MFAR[i].Width;
  end;
  
end;
simlei Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

WIN XP
D7
BeitragVerfasst: Sa 22.03.08 15:45 
Hey, danke! kurz und präzise :)
ffgorcky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 573

WIN XP/2000 & 7Prof (Familie:Win95,Win98)

BeitragVerfasst: Sa 24.01.09 14:41 
Funktioniert das denn genauso mit Panels, die ich vervielfachen möchte? (siehe Thema 89625)


Zuletzt bearbeitet von ffgorcky am Do 21.01.10 14:24, insgesamt 1-mal bearbeitet
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Sa 24.01.09 17:53 
user profile iconffgorcky hat folgendes geschrieben Zum zitierten Posting springen:
Funktioniert das denn genauso mit Panels, die ich vervielfachen möchte? (siehe Thema 89625)
Neue Frage neues Topic, aber...
www.delphi-library.d...iewtopic.php?t=43052
(bitte nicht erwarten, dass ich nach dem thema <put_long_number_here> jetzt suche... nen Link wär angebrachter gewesen ;) )

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.