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

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mo 21.11.05 12:03 
Hallo. Ich möchte fragen wie ich mein jetziges Problem lösen kann:

Links habe ich menü: (alLeft) Rechts sollen versciedene Fenster aufgerufen werden (forms, wie kann ich das realisieren)

z.B. Mitarbeiter knopf -> Rechte seite Mitarbeiter Form .

Danke
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mo 21.11.05 12:13 
Die antwort steht doch bereits in deinem Topic: mit Frames. Leg rechts ein Panel hin und fülle das beim Klick auf einen Menüeintrag mit dem entsprechenden Frame. Wenn schon einer drin liegt, wärs klug den voher zu entfernen.

_________________
Bravery calls my name in the sound of the wind in the night...
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mo 21.11.05 12:26 
Hallo. Wie kann ich in ein TPanel einen Frame füllen?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mo 21.11.05 13:15 
Bei deinem Anwendungsfall sinnvoll nur zu Laufzeit. So in etwa:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
begin
  MyFrame := TMyFrame.Create( self );
  MyFrame.parent := MyPanel;
  MyFrame.Align := alClient;
  MyFrame.Visible := true;
end;

_________________
Bravery calls my name in the sound of the wind in the night...
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mo 21.11.05 13:40 
Hallo Markus. Tut mir leid ich bin ein Anfänger war die Frame angeht.

Wenn ich ein Frame erstelle und über die Frane Komponente einfüge, dann wird dieser Frame frame_arbeit: Tframe_arbeit deklariert.

Also kann ich das doch über ein Button anwenden:

ausblenden Delphi-Quelltext
1:
2:
3:
  frame_arbeit.parent := Panel1;
  frame_arbeit.Align := alClient;
  frame_arbeit.Visible := true;


Wenn das mehrer Frames sind dann muss ich doch alle frames über die Komponente TFrame einbinden und dementsprechend "Sichbar machen" Richti ?

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mo 21.11.05 13:45 
Ja, soweit richtig. Allerdings brauchst du den Frame nicht im Designer auf das Panel zu legen, das geht mit dem Code auch so. Musst den Frame halt nur deklarieren.

Ich hoffe, du verstehst einigermaßen, was ich meine, ansonsten einfach so machen wie dus verstanden hast und wenns nich geht ( besser auch dann, wenns geht ) , Code posten und ggfls. weitere Fragen stellen :)

p.S.: Musst dich nicht entschuldigen, dass du Anfänger bist. Ist jeder in jedem Thema irgendwann mal :)

_________________
Bravery calls my name in the sound of the wind in the night...
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mi 30.11.05 13:00 
Hallo. Ich habe eine Frage. In eine Frame befindet sich eine TQuery Componente. Nun möchte ich das so programmieren, wenn ich einen anderes Frame aufrufe, das die Tabelle TQuery geschlossen wird. Leider gibt es kein Ereignis onClose oder orHide. Wie kann man das realisieren?