Autor Beitrag
jolomino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Sa 26.03.05 21:03 
Hallo,
ich lasse beim start der mdiform auch gleichzeitig 2 childs laden. wie bekommen ich es nun hin, das beide childs beim start horizontal angeordnet werden und nicht wie es jetzt ist überlappend?

gruss jolomino
wdbee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 628
Erhaltene Danke: 1



BeitragVerfasst: Sa 26.03.05 21:22 
ausblenden Delphi-Quelltext
1:
2:
  TileMode := tbHorizontal;
  Tile;
jolomino Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Sa 26.03.05 21:41 
danke dir funzt aber noch nicht. also hier mal nen auszug aus der mdiform beim create

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var
i : integer;
begin
for i := MDIChildcount -1 downto 0 do
MDIChildren[i].WindowState := wsMinimized;
TileMode := tbHorizontal;
Tile;
end;
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Sa 26.03.05 21:48 
Hi

user profile iconjolomino hat folgendes geschrieben:
danke dir funzt aber noch nicht. also hier mal nen auszug aus der mdiform beim create

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var
i : integer;
begin
for i := MDIChildcount -1 downto 0 do
MDIChildren[i].WindowState := wsMinimized;
TileMode := tbHorizontal;
Tile;
end;

Ich seh schon, wird nicht leicht werden dir die F1-Taste beizubringen :lol:

Im Ernst: mach in deinem Hauptfenster einfach
ausblenden Delphi-Quelltext
1:
2:
3:
4:
begin
   TileMode := tbHorizontal;
   Tile;
end;

und schon sollte das funktionieren. Die Schleife ist völlig unnötig.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
jolomino Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Sa 26.03.05 21:54 
hehe, ja scheint so :P
aber du wirst jetzt lachen, hier der code:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.FormCreate(Sender: TObject);
begin
TileMode := tbHorizontal;
Tile;
end;


da ist ja nun nichts dran, aber die childs sind nicht horizontal angeordnet sonder überlappend....ich bekomm nee krise :cry:
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Sa 26.03.05 21:56 
user profile iconjolomino hat folgendes geschrieben:
hehe, ja scheint so :P
aber du wirst jetzt lachen, hier der code:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.FormCreate(Sender: TObject);
begin
TileMode := tbHorizontal;
Tile;
end;


da ist ja nun nichts dran, aber die childs sind nicht horizontal angeordnet sonder überlappend....ich bekomm nee krise :cry:


Wenn du das im FormCreate des Hauptformulars machst dann ist das auch logisch. Zu dem Zeitpunkt sind deine ChildFormulare noch gar nicht erzeugt. Versuchs mal im OnActivate.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
jolomino Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Sa 26.03.05 22:04 
ich kanns hinballern wo ich will, immer das gleiche resultat :x

naja, erstmal trotzdem thx, ich werde nochmal ein wenig testen

gruss jolomino
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Sa 26.03.05 22:18 
Hi
user profile iconjolomino hat folgendes geschrieben:
ich kanns hinballern wo ich will, immer das gleiche resultat :x

naja, erstmal trotzdem thx, ich werde nochmal ein wenig testen

gruss jolomino

Stimmt. Wenn du die Childformulare tatsächlich gleich automatisch erzeugen willst, dann kannst du die entsprechenden Zeilen auch in den Projektquellcode schreiben. Nicht besonders elegant aber funktioniert auf jeden Fall.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1},
  Unit2 in 'Unit2.pas' {Form2},
  Unit3 in 'Unit3.pas' {Form3};

{$R *.res}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TForm2, Form2);
  Application.CreateForm(TForm3, Form3);
  Form1.TileMode := tbHorizontal;
  Form1.Tile;
  Application.Run;
end.


Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
jolomino Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Sa 26.03.05 22:28 
jou danke dir, das funzt :D

gruss sinus2k2