Autor Beitrag
Ochsenfrosch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 75

Win 2000 Prof.
Delphi 7
BeitragVerfasst: Mi 26.05.04 18:16 
Hi

Ich will,dass die 2 Form ÜBER der ersten form liegt. Wie kann dies machen?

Ochsenfrosch


Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am So 20.06.2004 um 22:12

_________________
Immer positiv denken!!!! (Windows kackt nicht ab, Windows kackt nicht ab....)
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Mi 26.05.04 18:35 
Kannst du dein Problem etwas genauer beschreiben?
grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
Ochsenfrosch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 75

Win 2000 Prof.
Delphi 7
BeitragVerfasst: Mi 26.05.04 19:02 
Wenn ich 2 Formen erstelle, und diese ausführe, ist die 2te Form immer hinter der ersten. Und ich will, dass die Zweite Form aber IMMER vor der ersten from ist.

_________________
Immer positiv denken!!!! (Windows kackt nicht ab, Windows kackt nicht ab....)
Ochsenfrosch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 75

Win 2000 Prof.
Delphi 7
BeitragVerfasst: Mi 26.05.04 19:03 
Der Befehl:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
ShowWindow( Application.Handle, SW_HIDE );
  SetWindowLong( Application.Handle, GWL_EXSTYLE,
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or
                 WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
  ShowWindow( Application.Handle, SW_SHOW );

geht leider nicht!

_________________
Immer positiv denken!!!! (Windows kackt nicht ab, Windows kackt nicht ab....)
IngoD7
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 629


D7
BeitragVerfasst: Mi 26.05.04 20:07 
Kann sein, dass ich dich missverstehe - aber hilft vielleicht Form2.BringToFront?
SvenAbeln
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 334
Erhaltene Danke: 3



BeitragVerfasst: Do 27.05.04 16:51 
Hallo,

wie wäre es mit
ausblenden Delphi-Quelltext
1:
Form2.FormStyle:=fsStayOnTop;					



Zitat:

ausblenden Quelltext
1:
2:
3:
4:
5:
ShowWindow( Application.Handle, SW_HIDE );
  SetWindowLong( Application.Handle, GWL_EXSTYLE,
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or
                 WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
  ShowWindow( Application.Handle, SW_SHOW );



Ich habe leider keine Ahnung was dieser Code machen soll,
aber ich vermute du möchtest hier die Eigenschaften von einem deiner Fenster setzen.

Dann solltest du aber auch das Handle von dem Fenster und nicht
Application.Handle verwenden.



Gruß,

Sven
Ochsenfrosch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 75

Win 2000 Prof.
Delphi 7
BeitragVerfasst: Do 27.05.04 17:09 
SvenAbeln hat folgendes geschrieben:
Hallo,

wie wäre es mit
ausblenden Delphi-Quelltext
1:
Form2.FormStyle:=fsStayOnTop;					



Zitat:

ausblenden Quelltext
1:
2:
3:
4:
5:
ShowWindow( Application.Handle, SW_HIDE );
  SetWindowLong( Application.Handle, GWL_EXSTYLE,
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or
                 WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
  ShowWindow( Application.Handle, SW_SHOW );



Ich habe leider keine Ahnung was dieser Code machen soll,
aber ich vermute du möchtest hier die Eigenschaften von einem deiner Fenster setzen.

Dann solltest du aber auch das Handle von dem Fenster und nicht
Application.Handle verwenden.



Gruß,

Sven


Mit dem Befehl kann man das Fenster immer im fordergrund halten (form1 zumindest :lol: )

_________________
Immer positiv denken!!!! (Windows kackt nicht ab, Windows kackt nicht ab....)
Ja-Pa
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 458

Win XP, Suse 9.3
D1, D3, D5 Std, D7 Pro, D2005 Pers, Kylix 3
BeitragVerfasst: So 20.06.04 10:30 
Ochsenfrosch hat folgendes geschrieben:
Der Befehl:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
ShowWindow( Application.Handle, SW_HIDE );
  SetWindowLong( Application.Handle, GWL_EXSTYLE,
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or
                 WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
  ShowWindow( Application.Handle, SW_SHOW );

geht leider nicht!


Klar, weil dieser Befehl die Schaltfläche in der Taskleiste ausblendet.
Wie meine "Vorschreiber" schon geasgt haben, würde ich entweder
ausblenden Delphi-Quelltext
1:
Form2.BringToFront;					

oder
ausblenden Delphi-Quelltext
1:
Form2.FormState := fsStayOnTop;					

verwenden.

Normalerweise öffnet sich Form2 aber über Form1, kann das sein, dass Form1 bei dir immer im Vordergrund steht?
Dann ist es nämlich kein Wunder, dass es nicht funktioniert.

_________________
Der Autor dieses Textes haftet nicht für Schäden an Soft- oder Hardware
oder Vermögensschäden, die durch das Benutzen des Textes entstehen.
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: So 20.06.04 14:24 
oder meinst du, dass das beim Programmstart so ist? dann liegt es daran, dass Form1 wohl die MainForm des Proggs ist. :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 20.06.04 16:39 
wenn zuerst nur For1 da ist und du von daaus Form2 öffnest, solltest du mal
ausblenden Delphi-Quelltext
1:
form2.showmodal;					

aufrufen...
vielleicht ist es das was du willst :?
Ochsenfrosch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 75

Win 2000 Prof.
Delphi 7
BeitragVerfasst: Mo 21.06.04 15:24 
danke. Hat sich inzwischen (dank eurer Antworten) Erledigt!

_________________
Immer positiv denken!!!! (Windows kackt nicht ab, Windows kackt nicht ab....)
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mo 21.06.04 15:29 
und was wars etz?

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
Ja-Pa
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 458

Win XP, Suse 9.3
D1, D3, D5 Std, D7 Pro, D2005 Pers, Kylix 3
BeitragVerfasst: Mo 21.06.04 18:09 
Ja genau.
Wir wollen an deienm Wissen beteiligt werden :wink:

_________________
Der Autor dieses Textes haftet nicht für Schäden an Soft- oder Hardware
oder Vermögensschäden, die durch das Benutzen des Textes entstehen.
Ochsenfrosch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 75

Win 2000 Prof.
Delphi 7
BeitragVerfasst: Di 22.06.04 17:36 
Mahlzeit....

Ich heb einfach formstyle auf fstayontop (oder so ähnlich) gestellt. Damit wars gegessen. Schankedön nochmal leutz. :D

_________________
Immer positiv denken!!!! (Windows kackt nicht ab, Windows kackt nicht ab....)