Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Splash and taskbutton (https://www.delphipraxis.net/166341-splash-taskbutton.html)

WojTec 8. Feb 2012 17:57

Delphi-Version: 2010

Splash and taskbutton
 
I want to add splash:

Delphi-Quellcode:
begin
  Application.ProcessMessages;

  with TForm1.Create(nil) do
  try
    Show;

    Application.Initialize;
    Application.MainFormOnTaskbar := False;
    Application.Title := 'Project5';
    Application.CreateForm(TMainForm, MainForm);

    Sleep(1000);
  finally
    Free;

    Application.MainFormOnTaskbar := True;
    Application.Run;
  end;
end.
After F9 on 7 I have 2 taskbuttons: first when splash i visible, then it is destroyed, and another one when main form i showed. On XP it is showed after splash (when splash just icon is visible in taskbar). What I have to do to get one taskbutton?


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:13 Uhr.

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