![]() |
||||
| My ramblings about my adventures developing software using Java, NetBeans and the command prompt! | ||||
Lazarus and that dreaded default icon
Lazarus : The great beyond
So I'm moving over from Java development to Lazarus. Awesome tool! And of course the biggest mistake I make is comparing it to Delphi. So herewith my adventures and mishaps using the Lazarus IDE based on the FreePascal compiler. Of course, everything here is based on MS Windows... Sorry! Don't have the Lazarus IDE ? What ? Go get it at http://www.lazarus.freepascal.org/ First of : Getting the program to display MY icon and not the generic Lazarus one... First create a "resources.rc" file. You can name it whatever you want, but I'll stick to this one for the example. Then put the following string in there : MainIcon ICON "myicon.ico" As long as it's the first entry in the file things seem to be OK. Now run the following command (located in the PP folder of your Lazarus installation): windres -i resources.rc -o resources.res You should end up with a resources.res file. Now simply put the following directive in your main source file : {$R resources.res} And rebuild all... Works for me! Ewald Horn 2006-06-23 10:59:44 GMT
Comments (1 total)
Author:Anonymous
The icon appears even when using Alt-Tab to switch between applications.
2006-06-23 12:40:02 GMT
|
||||