Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Icon ohne Formular? (https://www.delphipraxis.net/130167-icon-ohne-formular.html)

xZise 4. Mär 2009 11:28


Icon ohne Formular?
 
Hallo ihr,

ich habe eine kleine Anwendung geschrieben, welche den Explorer an der Stelle öffnet die im Parameter übergeben wird.
Deshalb besteht mein Code nur aus folgenden Bestandteilen:

Delphi-Quellcode:
program ExplorerMirror;

uses
  Windows,
  ShellAPI;

{$R *.res}

var
  Param : string;
  i : Integer;
begin
{  if ParamCount > 1 then

  else   }
    Param := ParamStr(1);
  ShellExecute(0, PChar('explore'), PChar(Param), nil, nil, SW_SHOWNORMAL);
end.
Wie kann ich jetzt da ein ein Icon hinterlegen?

MfG
xZise

Luckie 4. Mär 2009 12:39

Re: Icon ohne Formular?
 
Füge eine Ressource mit einem Icon hinzu. Das Icon mit der niedrigsten ID nimmt der Explorer als Programmicon.

xZise 4. Mär 2009 16:03

Re: Icon ohne Formular?
 
Ah gut zu wissen. Und es funktioniert wunderbar! Danke!

MfG
xZise


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:01 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