Autor Beitrag
Karstadt
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Di 06.12.05 11:06 
Hallo. Ich arbeite mit verschiede Tochterfenster: Wenn ich auf mehrer Fenster aufrufe, dann möchte ich das ich ein bestimmtes tochterfenster in vordergrund holle.

Denn somit "Tf_bauarbeiter.Create(Self)" erstelle ich ein zweites Fenster wenn ich eins schon habe.

Wie kann man das realisieren?

MFG

Viktor
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Di 06.12.05 11:22 
Ich versteh nicht ganz was du meinst.

Du hast eine MDI Anwendung und willst mehere Childs darin haben.
Aber eins soll immer "on top" sein?
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Di 06.12.05 11:54 
Hallo. Rechts habe ich eine Menüleiste. Mit Klick auf Person eröffnet sich eine Tochterfenster mit Person. Mit zweiten Knopf in Menü kann ich ein anderes Fenster öffnen. Die Frage ist, wie kann ich das Fenster Person mit Klick wieder nach vorne hollen?
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: Di 06.12.05 11:57 
Versuchs mal mit der Methode:
ausblenden Delphi-Quelltext
1:
<Fenstername>.BringToFront;					

Für <Fenstername> musst du natürlich die richtige Bezeichnung eintragen.
Miri
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Di 06.12.05 11:58 
ausblenden Delphi-Quelltext
1:
form.show					


so vielleicht?!
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Di 06.12.05 14:42 
Hallo. Das funktioniert bei mir nicht :( Zugriffverletzung.

FormStyle = fsMDIChild

Tf_xyz.Create(Self) erstellen,

wenn das erstellt ist und ein anderes Fenster augerufen wird holle ich das in vordergrund

f_xyz.BringToFront; //Fehler :(
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Di 06.12.05 14:53 
Hallo. Nun habe ich das :)

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var i: Integer;
begin
  with f_xyzdo
    for I := MDIChildCount-1 downto 0 do
      //Showmessage(MDIChildren[i].Name);
      MDIChildren[I].Show;


Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.