Einzelnen Beitrag anzeigen

Angel4585

Registriert seit: 4. Okt 2005
Ort: i.d.N.v. Freiburg im Breisgau
2.199 Beiträge
 
Delphi 2010 Professional
 
#13

Re: Fenster ohne eigenen Reiter

  Alt 12. Sep 2006, 10:28
oder hilft dir vllt das hier?

Delphi-Quellcode:

procedure ShowError(AForm : TForm);
var lmeldung : TForm;
begin
lmeldung:=TForm2.Create(AForm);
with lmeldung do
  try
    Parent:=AForm;
    Show;
    AForm.ActiveControl:=lmeldung;
    while Visible do
      begin
      Application.ProcessMessages;
      if Assigned(AForm.ActiveControl) and(AForm.ActiveControl.Parent <> lmeldung) then
        AForm.ActiveControl:=lmeldung;
      end;
  finally
    Free;
    end;
end;

procedure TForm3.Button2Click(Sender: TObject);
begin
ShowError(Self);
end;
Muss denk ich noch optimiert werden, aber ist denk ich ma ein vernünftiger Ansatz für dein Problem

Edit:Code ergänzt
Martin Weber
Ich bin ein Rüsselmops
  Mit Zitat antworten Zitat