How to change application icon within taskbar Delphi 2010 -


i change icon of application own icon (32x32 16bit ega) using :

project > option > applications > load icon 

the icon within taskbar changed in many border style := bsnone or bssingle or bssizeable or bssizetoolwin or bstoolwindow. icon did not change while use borderstyle := bsdialog.

please not tell me use :

application.icon.loadfromfile(extractfilepath(application.exename) + '\myicon.ico'); 

becase want submit 1 exe file only.

ps: use embarcadero delphi 2010

the icon of window associated taskbar button. application.mainformontaskbar set true, it's main form icon. when false it's icon of hidden window of application. have different icon on taskbar main form, need mainformontaskbar false, , assign different icon application.icon. seems easy way work around issue.

if recall vcl sets 1 size of icon. in experience better job , send wm_seticon messages directly set both small , large icons.

as icons reside, link them executable resources. avoid image lists because lose control of raw .ico files, that's perhaps me being picky. feel free use image lists if like.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -