Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi IBDatabase und Loginprompt (https://www.delphipraxis.net/102779-ibdatabase-und-loginprompt.html)

Faxman 9. Nov 2007 08:23

Re: IBDatabase und Loginprompt
 
ist das eine mdi anwendung?

dor557 9. Nov 2007 19:52

Re: IBDatabase und Loginprompt
 
Ja. aber das SplashForm ist kein MDIClient !

dor557 9. Nov 2007 21:20

Problem Erledigt !!!
 
Hallo zusammen. nun habe ich das Problem entdeckt.

Hatte die Eigenschaft AutoSize des forms auf True.

Dadurch hatte das Panel eine Höhe von 0. so nun der Code nach der Änderung :

Delphi-Quellcode:
function TstartProcess.Login_Panel : Integer;
begin
  StartProcess.LoginPanel.Visible := true;
  StartProcess.AutoSize := false;
  StartProcess.Height := StartProcess.Height + 100;
  StartProcess.LoginPanel.Height := 100;
  try
    SendMessage(handle, CM_ACTIVATE, 0, 0);
    ModalResult := 0;
    repeat
      Application.HandleMessage;
      If Application.Terminated Then ModalResult := mrCancel else
        if ModalResult <> 0 then LoginPanel.Visible := false;
    until ModalResult <> 0;
    Result := ModalResult;
    SendMessage(Handle, CM_DEACTIVATE, 0, 0);
  finally
    StartProcess.LoginPanel.Visible := false;
    StartProcess.AutoSize := true;
  end;
end;
gruss Sascha


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:41 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz