Splashform schuld an fehlerhafter Anzeige?

Für Probleme bezüglich Grafik, Audio, GL, ACS, ...
Antworten
khh
Beiträge: 489
Registriert: Sa 5. Apr 2008, 09:37
OS, Lazarus, FPC: Win Vista,Win 7 (L 0.9.29 FPC 2.4.1)
CPU-Target: 32Bit /64 Bit
Wohnort: Nähe Freiburg i.Br.

Splashform schuld an fehlerhafter Anzeige?

Beitrag von khh »

hallo zusammen,
mit

Code: Alles auswählen

Application.Initialize;
    splashForm := TSplashForm.Create(nil);
   SplashForm.ShowOnTop;
   Application.ProcessMessages;  //need this line to allow display
   SplashForm.Update;
.
.
.
.
 
 login_pruefen;
 .
 .
 
  Application.CreateForm(Tmyform, myform);
  Application.Run;
zeige ich während des Programmstartes ein Splashform an.
in der Routine login_prüfen wird per ShowMessage(blabla');
eine Meldung angezeigt.

Unter Vista tritt jetzt folgendes auf:
der Text im message-fenster wird nicht angezeigt, unter XP aber schon.

kommentiere ich
//SplashForm.ShowOnTop;
aus, wird das Splash trotzdem angezeigt und auch die Meldung funtkioniert!

was ist hier falsch?

Gruss KH

Benutzeravatar
theo
Beiträge: 10871
Registriert: Mo 11. Sep 2006, 19:01

Re: Splashform schuld an fehlerhafter Anzeige?

Beitrag von theo »

Und wenn du nur Show machst:

Code: Alles auswählen

splashForm := TSplashForm.Create(nil);
   SplashForm.Show;
   SplashForm.Update;
   Application.ProcessMessages;  //need this line to allow display
Update nach ProcessMessages bringt auch nicht viel.

khh
Beiträge: 489
Registriert: Sa 5. Apr 2008, 09:37
OS, Lazarus, FPC: Win Vista,Win 7 (L 0.9.29 FPC 2.4.1)
CPU-Target: 32Bit /64 Bit
Wohnort: Nähe Freiburg i.Br.

Re: Splashform schuld an fehlerhafter Anzeige?

Beitrag von khh »

theo hat geschrieben:Und wenn du nur Show machst:

Code: Alles auswählen

splashForm := TSplashForm.Create(nil);
   SplashForm.Show;
   SplashForm.Update;
   Application.ProcessMessages;  //need this line to allow display
Update nach ProcessMessages bringt auch nicht viel.
ich hab jetzt update vorverlegt ;-)
mit SplashForm.Show; der geleiche effekt, die meldung im Fenster wird "verschluckt"
Aber warum wird das Fenster ohne show auch angezeigt, und dann funktionierts?

Antworten