Autor Beitrag
mexx
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Mo 21.11.05 13:30 
Hallo,

jeder kennt doch den Winamp oder ähnliche Programme. Ich möchte eine Funktion aus dem Winamp auch haben. Und zwar das herraus-wachsen eines Fensters. Ich möchte, das an der rechten Seite meiner Form, auf verlangen, ein Fenster wächst, welches entsprechende Steuerelemente enthält. Wie kann ich das realisieren?

Gruß mexx
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 21.11.05 13:32 
Form1.Length; Form1.Height?

Kannst ja BorderStyle dann auf Single stellen und dann klappt das

greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Mo 21.11.05 13:34 
Nein, es soll animiert herrauswachsen. Stell dir folgendes vor. Du hast eine ganz normale Form. Sie hat eine höhe von 200. Nun soll mittig der Form eine art arm herrauskommen, der weitere Elemente beinhaltet. Er soll eine Höhe von ca. 100 haben und animiert hervorkommen und wieder zurückrutschen, wenn ich fertig bin.
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 21.11.05 13:38 
Ja, ich weiß was du meinst.. weiß aber auch nicht wie es geht..
Vielleicht kannst dus ja so machen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
repeat
  Form1.Width := Form1.Width + 1;
  Sleep(1);
until
  Form1.Width >= 400;

Sieht eigendlich sehr schön aus ;)

greetz

EDIT: Sleep kannste auch weg lassen ;)

Edit2: Mit while ist es wohl besser:
ausblenden Delphi-Quelltext
1:
2:
  while Width < 400 do
    Width := Width + 1;

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Mo 21.11.05 13:50 
Ansich nicht schlecht, aber das zieht dann auch Komponenten breit, die nicht mit wachsen sollen. Dazu kommt, dass ich ja das neue Fenster kleiner haben will.
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 21.11.05 13:52 
Wenn es Komponenten breit zieht dann mach doch die Anchors auf False, oder was meinst du?

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Mo 21.11.05 14:03 
Is mir schon klar, aber das sähe blöd aus. Die erwähnten Komponenten sind ein Grid und ein ToolBar mit verschiedenen Buttons. Wenn ich die so lasse und die anderen Elemente herrauswachsen lasse, würde dass echt nicht gut aussehen.