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

Reply via email to