Another way of assigning icon to the application is to create a resource file, i.e., app_ico.rc with the following content:
MAINICON ICON "./images/dbman.ico"
then compile into a resource:
winres -i app_ico.rc -o app_ico.res
Then in your main program adjust to include the new resource file, like:
program dbman;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms
{ add your units here }, main, sqlite3laz;
{$R manifest.res}
{$R dbman.res}
{$R app_ico.res} //<-this line here
begin
Application.Initialize;
Application.CreateForm(TFormMain, FormMain);
Application.Run;
end.
Regards,
Technos[/code]