Quite a big site for laz ressources :) I'll give it a try. Thank you
(and also to
Ewald).

2006/8/8, Henrique P Faria <[EMAIL PROTECTED]>:

You can try too this application :
http://www.lazarus-resource.com/resource-manager.shtml

It works with Lazarus and can add WinXP manifest resource, version and icon.

If you wish to add icons in the forms you have to install the component
rxnew.

Henrique.



-----Mensagem original-----
De: Ewald Horn [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 8 de agosto de 2006 10:27
Para: [email protected]
Assunto: Re: [lazarus] win32 program icon

Adding an icon turns out to involve a few steps,  once.

First, create a file called RESOURCES.RC that contains the following
text in the first line : MainIcon ICON "myicon.ico"

As long as the first entry is an icon, it will be used as the default
icon for your application on Win32 platforms. Right, now type the
following command-line : windres -i resources.rc -o
resources.res          provided that you have the FPC bin folder in your
path, of course. This "should" create resources.res which includes your
icon file.

Now, in your main application add the following right under the UNIT
MYUNIT; line : {$R resources.res}


And that's it. Works for me.

Regards
Ewald

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives



--
Alexandre Leclerc

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to