Autor Beitrag
csigg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Mi 13.04.05 09:58 
ich hab zwei Forms. in dem ersten ruf ich mit
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
 with frm_Buchung do
        begin
          {  frm_Buchung.Visible := true;
            frm_Reservierung.Visible := false;    }


            ComboBox3.SelText := item.GetCaptionString;
            temp := item.Text.Text;
            Edit1.text := Copy (temp, 1, Length (temp) - 2);
            ComboBox4.ItemIndex := item.Index;
            MonthCalendar1.date := item.ItemStartTime;
            ComboBox1.SelText := item.ItemStartTimeStr;
            ComboBox2.Seltext := item.ItemEndTimeStr;
            sKey := item.DBKey;
           ShowModal;
        end;

das zeite (frm_Buchung) auf. Die Parameter in frm_buchung werden so allerdings nicht übernommen.
Wenn ich es aber über visible aufrufe, also so wies im kommentar steht dann gehts.
ich brauch das ganze aber über ShowModal, kann mir jemand helfen??
Muetze1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 346



BeitragVerfasst: Mi 13.04.05 19:23 
Moin!

Warum überschreibst du nicht einfach ShowModal und gibst ihr alle nötigen Informationen mit, welches dann die Form befüllt vor dem Result := Inherited ShowModal; Aufruf.

MfG
Muetze1
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Do 14.04.05 07:44 
habs jetzt doch mit Visible := true usw. gemacht, hat doch so geklappt wie ich es wollte.
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Do 14.04.05 13:12 
Ging leider doch nicht so wie ich das wollte.

@Muetze1: du meinst ich sie ShowModal praktiv neu definieren?? Wie geht das in Delpi??
Müsste das normal nicht auch einfacher gehen. Ich will doch nur ein paar ComboBoxen eines anderen Formulars Werte zuweisen.